READFILE(1(
F)
Form and Menu Language Interpreter UtilitiR
eE
s)
ADFILE(1F)
NAME
readfile, longline - reads file and gets longest line
SYNOPSIS
readfile file
longline [file]
DESCRIPTION
The readfile command reads the file named in its argument.
No translation of new-lines is done. It keeps track of the
longest line it reads and if there is a subsequent call to
longline, the length of that line, including the newline
character, is returned. The longline command can be given
an argument instead, in which case it will calculate its
longest line.
EXAMPLES
Here is a typical use of readfile and longline in a text
object:
.
.
.
text="`readfile myfile`"
columns=`longline`
.
.
.
DIAGNOSTICS
If the file does not exist, readfile will return FALSE (i.e.
the expression will have an error return).
SEE ALSO
cat(1)
Page 1 May 1989