Files
archived-tauri-docs/docs/api/js/interfaces/fs.FsTextFileOption.md
2022-03-29 07:36:52 +02:00

32 lines
582 B
Markdown

[@tauri-apps/api](../README.md) / [fs](../modules/fs.md) / FsTextFileOption
# Interface: FsTextFileOption
[fs](../modules/fs.md).FsTextFileOption
Options object used to write a UTF-8 string to a file.
## Properties
### contents
**contents**: `string`
The UTF-8 string to write to the file.
#### Defined in
[fs.ts:111](https://github.com/tauri-apps/tauri/blob/a144e92/tooling/api/src/fs.ts#L111)
___
### path
**path**: `string`
Path to the file to write.
#### Defined in
[fs.ts:109](https://github.com/tauri-apps/tauri/blob/a144e92/tooling/api/src/fs.ts#L109)