Emx::File类 参考

文件操作相关函数

#include "File.hpp"

静态 Public 成员函数

static bool IsDir (const char *path)
 路径是否为文件夹 更多...
 
static bool IsFile (const char *path)
 路径是否为文件 更多...
 
static ErrCodeE Copy (const char *src, const char *dst)
 文件拷贝 更多...
 
static bool Exist (const char *path)
 文件是否存在 更多...
 
static void Create (const char *path)
 创建一个文件 更多...
 
static int32_t Size (const char *path)
 文件大小 更多...
 
static void Remove (const char *path)
 删除一个文件 更多...
 
static ErrCodeE Read (const char *path, std::string &buffer)
 从文件中读取数据 更多...
 
static ErrCodeE Write (const char *path, const char *buffer, int size)
 向文件中写入数据 更多...
 

成员函数说明

◆ IsDir()

static bool Emx::File::IsDir ( const char *  path)
static

◆ IsFile()

static bool Emx::File::IsFile ( const char *  path)
static

◆ Copy()

static ErrCodeE Emx::File::Copy ( const char *  src,
const char *  dst 
)
static

◆ Exist()

static bool Emx::File::Exist ( const char *  path)
static

◆ Create()

static void Emx::File::Create ( const char *  path)
static

◆ Size()

static int32_t Emx::File::Size ( const char *  path)
static

◆ Remove()

static void Emx::File::Remove ( const char *  path)
static

◆ Read()

static ErrCodeE Emx::File::Read ( const char *  path,
std::string &  buffer 
)
static

◆ Write()

static ErrCodeE Emx::File::Write ( const char *  path,
const char *  buffer,
int  size 
)
static