FileWriter
classin packageklyn.io
public class FileWriter extends AbstractTextWriter:
Text writer backed by one file.
Opening the writer truncates the target file.
import klyn.io
try writer = FileWriter("notes.txt"):
writer.writeLine("hello")
Constructors
| Modifier and Type |
Member |
Description |
| public |
FileWriter |
Creates a file text writer and truncates the target file. |
| public |
FileWriter |
Creates a file text writer and truncates the target file. |
Methods
| Modifier and Type |
Member |
Description |
| public override |
close |
Closes the writer. |
| public override |
write |
Writes raw text to the file. |