Write a string followed by a newline to the file; returns the number of bytes written (0 on error), or an error if the file is not open
import "file" fh = file.open("log.txt", "w") fh.writeLine "first line" fh.writeLine "second line" fh.close
There was an error while loading. Please reload this page.