Header file: #include "fstream.h"
The fstream.h header file must be included in the program. Place it near the top of the
program source file where your event handlers are located that need to do file processing.
File variable types:
Example:
#include "fstream.h"
ifstream infile;
{
infile.open("filename.dat");
infile >>
}