Skip to content

FileHandle.writeLine

JoeStrout edited this page Apr 29, 2026 · 2 revisions

Write a string followed by a newline to the file

Parameters

Parameter Default Value Note
data

Return value

Condition Return Value
(always) number

Notes

Example

import "file"
fh = file.open("log.txt", "w")
fh.writeLine "first line"
fh.writeLine "second line"
fh.close

Clone this wiki locally