vfile.h
来自「otl简单包装实现类,对数据库进行操作的,简单易用.」· C头文件 代码 · 共 46 行
H
46 行
/*************************************************************************** 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 + =
减小字号Ctrl + -
显示快捷键?