NET - Explain common Stream types in Net.

Explain common Stream types in Net.

1. FileStream : Is to read from, write to, open, and close files on a file system. FileStream objects support random access to files using the Seek method.
2. MemoryStream : It creates streams that have memory as a backing store instead of a disk or a network connection. Memory streams can reduce the need for temporary buffers and files in an application.
3. StreamReader : It is meant for character input , whereas the Stream class is meant to perform byte input and output. StreamReader is basically used for reading lines of text from a text file.
4. StreamWriter : It is meant for character output instead of byte output.
NET - Explain how to compress data with a compression Stream
Explain how to compress data with a compression Stream - Compression streams write to another stream.......
NET - Explain how to Throw and Catch Exceptions in C#.NET
Answer - Explain how to Throw and Catch Exceptions......
NET - Explain when should we use StringBuilder class instead of the String class
Use StringBuilder class instead of the String class - Whenever any of the methods of String class is used to modify the string......
Post your comment