Interview questions

Define Stream class in .NET.

Next question>>                   Learn .NET
NET - Define Stream class in .NET. Explain with an example using C#.NET? - June 08, 2009 at 08:00 AM by Shuchi Gauri

Define Stream class in .NET. Explain with an example using C#.NET.

The Stream class gives a view of various types of input and output. Streams involve three fundamental operations:

a. Read: transfer of data from stream into a data structure.
b. Write: transfer of data from a data structure into stream.
c. Seeking: querying and updating the current position within the stream.

Streams are a medium to read and write data to and from memory, file or other objects.


System.IO.StreamReader file=new StreamReader(@"abc.txt")
string temp=file.ReadToEnd();

Next question>>

Also read

.NET base class library

The .NET Framework class library is a library of classes, interfaces, and value types...............

.NET control

Define base class control.
What is inherited control?
Define UserControl class.................

Explain the concepts of resource manager class.

ResourceManager class: It provides convenient access to resources that are culture-correct. The access is provided at run time...........

Working with the DataList Control

The DataList control like the Repeater control is a template driven, light weight control, and acts as a container of repeated data items. The templates in this control are used to define the data that it will contain. It is flexible in the sense that you can easily customize the display of one or more records that are displayed in the control...........

ASP.NET displaying data using DataList control

The DataList control contains a template that is used to display the data items within the control. Since there are no data columns associated with this control, you use templates to display data. Every column in a DataList control is rendered as a <span> element........... 

Write your comment - Share Knowledge and Experience


Latest placement tests
Latest links
Latest MCQs
» General awareness - Banking » ASP.NET » PL/SQL » Mechanical Engineering
» IAS Prelims GS » Java » Programming Language » Electrical Engineering
» English » C++ » Software Engineering » Electronic Engineering
» Quantitative Aptitude » Oracle » English » Finance
Home | About us | Sitemap | Contact us