📄 vfile.h
字号:
/*************************************************************************** vfile.h - description ------------------- begin : 2003.7.31 copyright : (C) 2003 by |LiuZhong| email : |zliu@foundermn.com| ***************************************************************************//*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/#ifndef VFILE_H#define VFILE_H#include <stdio.h>class VFile{ FILE* m_Vfp;public: VFile(); ~VFile(); bool Open(const char *path,const char *mode); long Read(void* ptr,long size); long Write(const void *ptr,long size); long ReadLine(char* ptr,long size); long WriteLine(const char* ptr); long Seek(long Offset,int whence); void Close(); static long Length(const char* FName); static bool DirExist(const char* Dir); static bool FileExist(const char* FName); static bool Mkdir(const char* Dir); static bool Rmdir(const char* Dir); static bool Remove(const char* FName); static bool Rename(const char* OldName,const char* NewName); static long SetLength(const char* FName,long newlen); static bool CreatePath(const char* FilePath); static bool SplitDirFile(const char* FilePath,char* Dir,char* File);};#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -