Skip to content

file.writeLines

JoeStrout edited this page Apr 29, 2026 · 2 revisions

Write a list of strings (or a single string) to a text file

Parameters

Parameter Default Value Note
path
lines

Return value

Condition Return Value
(always) number

Notes

Example

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

Clone this wiki locally