Skip to main content

write_lines

Method of TextFile.

write_lines(const List lines) -> TextFile

Writes a list of lines to the file, truncating first.

Parameters

  • lines: List of strings.

Returns

Reference to the same TextFile instance.