M
Matrixinline
Hi All
Here is my problem I am using a Unicode project
and I tried to read the File like
sPath = LPCTSTR;
FILE* oFp = _tfopen(sPath,L"r");
while(!feof(oFp))
{
if (fgets(sReadData, 3072, oFp) != NULL)
{
sStringBuffer +=sReadData;
}
}
fclose(oFp);
But when I tried to Read a *.BMP file I get BM6 in the Buffer
sStringBuffer. after that It encounters end of file and closes down.
Can you please let me know where I am making a mistake to read files.
Thanks
Anup
Here is my problem I am using a Unicode project
and I tried to read the File like
sPath = LPCTSTR;
FILE* oFp = _tfopen(sPath,L"r");
while(!feof(oFp))
{
if (fgets(sReadData, 3072, oFp) != NULL)
{
sStringBuffer +=sReadData;
}
}
fclose(oFp);
But when I tried to Read a *.BMP file I get BM6 in the Buffer
sStringBuffer. after that It encounters end of file and closes down.
Can you please let me know where I am making a mistake to read files.
Thanks
Anup