easyx_framework V1.0.0
基于easyx的c++游戏框架
 
载入中...
搜索中...
未找到
FileManager类 参考

文件管理器. 更多...

#include <FileManager.h>

静态 Public 成员函数

static void CreateFolder (std::string folderPath)
 创建文件夹
 
static void RemoveFolder (std::string folderPath)
 移除文件夹
 
static void CopyFolder (std::string newfolderPath, std::string oldfolderPath)
 复制文件夹
 
static void CreateFile (std::string filePath)
 创建文件
 
static void InputFile (std::string filePath, std::string text)
 写文件
 
static std::string ReadFile (std::string filePath)
 读文件
 

详细描述

文件管理器.

成员函数说明

◆ CopyFolder()

void FileManager::CopyFolder ( std::string newfolderPath,
std::string oldfolderPath )
static

复制文件夹

参数
newfolderPath
[in]

或者绝对路径

参数
oldfolderPath
[in]

或者绝对路径

◆ CreateFile()

void FileManager::CreateFile ( std::string filePath)
static

创建文件

备注
相对路径
参数
[in]filePath新文件相对路径

◆ CreateFolder()

void FileManager::CreateFolder ( std::string folderPath)
static

创建文件夹

参数
[in]folderPath相对路径 或者绝对路径

◆ InputFile()

void FileManager::InputFile ( std::string filePath,
std::string text )
static

写文件

备注
默认已经处理好字符 最后换行 如果不是文件而是文件夹只会显示子文件
参数
[in]text新文件相对路径 或者绝对路径[in]内容

◆ ReadFile()

std::string FileManager::ReadFile ( std::string filePath)
static

读文件

返回
读取的数据
备注
不做处理 如果不是文件而是文件夹只会显示子文件
参数
[in]filePath新文件相对路径 或者绝对路径

◆ RemoveFolder()

void FileManager::RemoveFolder ( std::string folderPath)
static

移除文件夹

参数
[in]folderPath相对路径 或者绝对路径