I'm trying to read a file using:
The file I am reading is an encrypted file, (which I have encrypted), so it contains lots of weird ascii characters.
The code above is not reading in the entire file, but stopping before the end. Any ideas why?
Code:
TCHAR buf[1024];
String sFile;
while (_fgetts(buf,1024,f) != NULL)
{
sFile += String(buf);
}
The file I am reading is an encrypted file, (which I have encrypted), so it contains lots of weird ascii characters.
The code above is not reading in the entire file, but stopping before the end. Any ideas why?