Files
MAX_CARLINK_A270S/MXC_A27-PCB4.5-270S/lib/awtk/awtk/docs/manual/data_writer_file_t.md
2025-01-21 16:49:37 +08:00

38 lines
1.0 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

## data\_writer\_file\_t
### 概述
![image](images/data_writer_file_t_0.png)
基于文件实现的 data_writer。通过 data_writer_factory 创建 writer 时URL的格式如下
```
file://filename
```
----------------------------------
### 函数
<p id="data_writer_file_t_methods">
| 函数名称 | 说明 |
| -------- | ------------ |
| <a href="#data_writer_file_t_data_writer_file_create">data\_writer\_file\_create</a> | 创建基于文件的data writer。 |
#### data\_writer\_file\_create 函数
-----------------------
* 函数功能:
> <p id="data_writer_file_t_data_writer_file_create">创建基于文件的data writer。
> 不要直接调用,而是注册到 data\_writer\_factory后通过data\_writer\_factory调用
* 函数原型:
```
data_writer_t* data_writer_file_create (const char* filename);
```
* 参数说明:
| 参数 | 类型 | 说明 |
| -------- | ----- | --------- |
| 返回值 | data\_writer\_t* | 返回data writer对象。 |
| filename | const char* | 文件名。 |