FileWriterAgent Module
Types
| Type | Description |
|
Messages for the file writer agent |
|
|
|
Functions and values
| Function or value |
Description
|
Full Usage:
append path lines writer
Parameters:
string
lines : string[]
writer : Agent<FileWriterMsg>
Returns: Agent<FileWriterMsg>
|
|
Full Usage:
clear path writer
Parameters:
string
writer : Agent<FileWriterMsg>
Returns: Agent<FileWriterMsg>
|
|
Full Usage:
close path writer
Parameters:
string
writer : Agent<FileWriterMsg>
Returns: Agent<FileWriterMsg>
|
|
|
|
|
|
|
|
|
|
|
|
|
Open a new StreamWriter with sharing that allows editors to truncate/replace. Always write UTF-8 without BOM to avoid hidden preambles/nonprintable characters.
|
|
|
|
|
|
|
|
|
|
Write lines; if a failure happens (file deleted, replaced, truncated), reopen once and retry.
|
GenPRES