ngl_server 1.0
基于 Actor 模型的 C++ 服务器框架
tools_file.cpp File Reference

实现文件和目录I/O操作 More...

#include "actor/protocol/nprotocol.h"
#include "tools/tools/tools_file.h"
#include "tools/log/nlog.h"
#include <filesystem>
#include <fstream>
#include <limits>
#include <string>

Namespaces

namespace  ngl::tools
 工具函数命名空间。

Detailed Description

实现文件和目录I/O操作

提供readfile和writefile类的完整实现,用于安全的文件读写 支持按行读取、全文读取、CSV特殊处理等功能

Note
文件操作使用RAII模式,确保资源自动释放