To write / read the content to / write the file, you require file streams.
A file stream acts as a pointer for the file, which contains the memory address of the file on the disc.
There are two types of file streams.
1) Reading Streams 2) Writing Streams
Using Namespace for FileStram
A file stream acts as a pointer for the file, which contains the memory address of the file on the disc.
There are two types of file streams.
1) Reading Streams 2) Writing Streams
Using Namespace for FileStram
- System.IO.StreamReader (to read the content of the file)
- System.IO.StreamWriter (to write the content into the file)