Skip to content

file.writeLines

JoeStrout edited this page Nov 16, 2026 · 3 revisions

Write a list of strings (or one string) to a text file, a line each. Returns null on success, or an error.

Parameters

Parameter Default Value Note
path
lines

Return value

None.

Notes

Example

import "file"
lines = ["line one", "line two", "line three"]
file.writeLines "output.txt", lines

Clone this wiki locally