I'm using Vc++ 6 by the way.
I have this code to read from a text file:
Code:
#include <fstream.h>
char line[100];
void main()
{
ifstream fin("test.txt");
while( fin.getline(line, 100) )
{
cout << "read line: " << line << endl;