Files
XCEngine/docs/api/XCEngine/Core/FileWriter/Open.md

28 lines
400 B
Markdown
Raw Normal View History

2026-03-26 16:45:24 +08:00
# FileWriter::Open
2026-04-08 16:07:03 +08:00
**命名空间**: `XCEngine::Core`
**类型**: `method`
**头文件**: `XCEngine/Core/FileWriter.h`
## 签名
2026-03-26 16:45:24 +08:00
```cpp
bool Open(const char* filePath, bool append = false);
```
2026-04-08 16:07:03 +08:00
## 作用
2026-03-26 16:45:24 +08:00
2026-04-08 16:07:03 +08:00
更新 `m_file`
2026-03-26 16:45:24 +08:00
2026-04-08 16:07:03 +08:00
## 当前实现
2026-03-26 16:45:24 +08:00
2026-04-08 16:07:03 +08:00
- 会更新 `m_file`
- 当前实现会调用 `Close``fopen`
- 包含 `nullptr` 相关分支。
2026-03-26 16:45:24 +08:00
## 相关文档
2026-04-08 16:07:03 +08:00
- [FileWriter](FileWriter.md)