Skip to content

FileHandle.write

JoeStrout edited this page Apr 29, 2026 · 2 revisions

Write a string 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.write "entry 1"
fh.write "entry 2"
fh.close

Clone this wiki locally