File Read « File « C++






1.Write char to a fileWrite char to a file
2.Read file contentRead file content
3.Demonstrate gcount().Demonstrate gcount().
4.Use getline() to read a string that contains spaces.Use getline() to read a string that contains spaces.
5.Demonstrate peek() in ifstreamDemonstrate peek() in ifstream
6.Demonstrate seekg().
7.Read formatted data from a file.
8.Write unsigned char to a file and read it back