#include "stdafx.h"
#include <string>
#include <iostream>
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
{
FILE * readfp;
string RawDataFileAddress = "F:\\CTRawdataFile\\20170822\\d1ffe726-e911-42f7-83e0-e6ac0e4a2d63\\1e34380a-3368-4986-8fa6-65b449b05d02.rdt";
size_t RawDataFileLength = 0;
fopen_s(&readfp,RawDataFileAddress.c_str(),"r");
try
{
_fseeki64(readfp,0,SEEK_END);
RawDataFileLength=_ftelli64(readfp);
_fseeki64(readfp,0,SEEK_SET);
cout<<"文件大小"<<RawDataFileLength<<endl;
}
catch (exception& e)
{
cout << "Standard exception: " << e.what() << endl;
}
getchar();
return 0;
}