M
Matrixinline
Hi All,
Here is the problem
char* memblock;
std::ifstream file(sFileName, ios::in|ios::binary);
if (file.is_open())
{
size = file.tellg();
memblock = new char [size];
file.seekg (0, ios::beg);
file.read (memblock, size);
file.close();
cout << "the complete file content is in memory";
delete[] memblock;
}
I tried to read a say "JPEG/GIF/EXE/etc.. " files.
I checked in to debugger and find that It reads only
BM╤ from file it means that it does not read till the end of file can
you please let me know why this problem I am facing
One more thing My project is a Unicode one I hope this one will not
affect the File I/O functions
Thanks
Anup
Here is the problem
char* memblock;
std::ifstream file(sFileName, ios::in|ios::binary);
if (file.is_open())
{
size = file.tellg();
memblock = new char [size];
file.seekg (0, ios::beg);
file.read (memblock, size);
file.close();
cout << "the complete file content is in memory";
delete[] memblock;
}
I tried to read a say "JPEG/GIF/EXE/etc.. " files.
I checked in to debugger and find that It reads only
BM╤ from file it means that it does not read till the end of file can
you please let me know why this problem I am facing
One more thing My project is a Unicode one I hope this one will not
affect the File I/O functions
Thanks
Anup