h1.post-title { color:orange; font-family:verdana,Arial; font-weight:bold; padding-bottom:5px; text-shadow:#64665b 0px 1px 1px; font-size:32px; } -->

Pages

Define FileStream

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

  • System.IO.StreamReader (to read the content of the file)
  • System.IO.StreamWriter (to write the content into the file)