Constructor
new StreamWriter(filename)
Parameters:
Name | Type | Description |
---|---|---|
filename |
String | name of the text file to open/create. |
- Source:
Throws:
-
when the filename is falsy value or when failed to open file.
- Type
- Error
Extends
Methods
Close()
Close current text stream.
- Source:
Write(text)
Write text to tail of the file.
Parameters:
Name | Type | Description |
---|---|---|
text |
String | to write. |
- Source:
WriteLine(text)
Write 1 line to tail of the file.
Parameters:
Name | Type | Description |
---|---|---|
text |
String | to write. |
- Source: