blob: 19e48a99037cb6a70465e6e27e1916c0297c0c8c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
'\" t
.\" Copyright (c) 2025 Bruce Hill
.\" All rights reserved.
.\"
.TH Path.lines 3 2025-11-29 "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
l l l.
Name Type Description
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
.SH SEE ALSO
.BR Tomo-Path (3)
|