Hi,
Hi, i am reading the content of a binary file, enoding as base64 and
writing to an output file. After noticing that my output file seems to
be truncated, i created the following simple test code in an attempt to
isolate the issue. The actually binary is 25kb, however the length of
the string appears to be only around 5kb. How can this be possible?
ifstream myfile( argv[1] );
string fc;
while ( myfile.get( ch ) )
{
fc+= ch;
}
cout << "\nContent len: " << fc.length();