-
Re: Strings in VC++ 6
Hi thanx for the help , for reachng this far
I wanted to read the contents of the file in hex format ,
so Im using this
....
FILE *internetCacheFile_Pointer;
internetCacheFile_Pointer=fopen("c:\\<internet_temp_location>\\1.jpg","rb");
struct stat statbuf;
fflush(srcFp);
fstat(fileno(srcFp), &statbuf);
char buffer_file[sizeof(statbuf)];
while (count < (statbuf.st_size))
{
data=fgetc(internetCacheFile_Pointer);
if ( (char)output != '"' ){
bufferFile[count] = (char)data;
}
count++;
}
The main purpose of this code is to read a binary file and store in the FilePointerBuffer(hex format).
regards