Re: Read text file in VC++
Re: Read text file in VC++
You can use fstream to read text file that will be even easy and simple.
Code:
ifstream fileRead("your file");
while ( ! fileRead.eof() )
{
/** Do your stuffs here **/
}
In the stuff part you need to manipulate text file reading as per your need. Like you can read line by line in char* by getline() and break into two char* if a space found ie: the delim of getline() and if '\n' found go to next line and read it, and so on, using a loop.
Re: Read text file in VC++
Thanks for your reply, but can you tell me where the file is stored?
Re: Read text file in VC++
Re: Read text file in VC++
Which file. No file is storing here. You need to input file name, the file you want to read