The HFMwFileReader component provides methods for reading files. You can read files as either text or binary files:
To read a file as a text file, open it with OpenAsText. You then can loop through the file by calling ReadLine until the end of the file is reached; test for the end of the file with IsEOF. After you finish reading the file, call Close.
To read a file as a binary file, open it with OpenAsBinary. You then can loop through the file by calling Read until the end of the file is reached; test for the end of the file with IsEOF. After you finish reading the file, call Close.
The HFMwFileReader component contains the methods described in the following topics.