Hi,
FILE *fptr = NULL;
if(fopen_s(&fptr,"Sample.txt","w") != 0){
cout << "Could not open file";
}
__int64 a=10;
QueryPerformanceCounter((LARGE_INTEGER*)&a);
char b[255];
sprintf_s(b,255,"%d",a);
fprintf_s(fptr,"%s",b);
fclose(fptr);
The code above writes the __int64 to a file,are you facing any issues in writing __int64 which is returned by QueryPerformanceCounter?