diff options
Diffstat (limited to 'man/man3/tomo-Path.lines.3')
| -rw-r--r-- | man/man3/tomo-Path.lines.3 | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/man/man3/tomo-Path.lines.3 b/man/man3/tomo-Path.lines.3 new file mode 100644 index 00000000..e4e95e7e --- /dev/null +++ b/man/man3/tomo-Path.lines.3 @@ -0,0 +1,33 @@ +'\" t +.\" Copyright (c) 2025 Bruce Hill +.\" All rights reserved. +.\" +.TH Path.lines 3 2025-11-23 "Tomo man-pages" +.SH NAME +Path.lines \- return the lines in a file +.SH LIBRARY +Tomo Standard Library +.SH SYNOPSIS +.nf +.BI Path.lines\ :\ func(path:\ Path\ ->\ [Text]?) +.fi +.SH DESCRIPTION +Returns a list with the lines of text in a file or returns none if the file could not be opened. + + +.SH ARGUMENTS + +.TS +allbox; +lb lb lbx lb +l l l l. +Name Type Description Default +path Path The path of the file. - +.TE +.SH RETURN +A list of the lines in a file or none if the file couldn't be read. + +.SH EXAMPLES +.EX +lines := (./file.txt).lines()! +.EE |
