转自:http://blog.csdn.net/rrrfff/article/details/6705685 bool SetFileLength(const char *FilePath, off_t Length) { #ifdef WIN32 System::IO::FileStream *File = System::IO::File::Open(Length, File::OpenMode, File::AllAccess); if (!File) { return false; }…