enter image description hereI am trying to read File which has Ascii data inside file. It deosnt read full file and stops in between(when I checked in file by converting to Hex format, it shows it get stop when enters 0x1a). Below is my code
int _tmain(int argc, _TCHAR* argv[])
{
ifstream infile;
char c;
infile.open("test.txt");
while(!(infile.eof())){
infile.get(c);
cout<< c;
}
return 0;
}
Please suggest me how to read entire file(data inside file is in ascii format)?. Thanks in advance
Text File data : ¯µbë éÿïÿ ¬F¸
The reading has stopped reading after ey.