A file is a collection of data consisting of a specific or unique name with a path containing a directory name that helps access it. After opening the file, it becomes a stream, and the stream is a sequence of bytes in the communication path.
like creating a file, deleting a file, updating a file, appending a file etc. The file becomes a stream when we open it for reading or writing, and the stream is a sequence of bytes that we use for communication.
There are various classes and methods of those classes which we can use to perform operations on files.
StreamWriter is a class which implements TextWriter to write in a file. The methods are as follows,
This class implements TextReader in file and reads the file. There are some methods in this class,
|