Manual page for readfile(1F)
readfile, longline - reads file, gets longest line
The readfile function reads
and copies it to stdout.
No translation of NEWLINE 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,
The longline function returns the length, including
character, of the longest line in
is not specified, it uses the file named in the last call
Here is a typical use of readfile
and longline in a text frame definition file:
does not exist, readfile will return
(that is, the expression will have an error return).
if a readfile has not previously
More than one descriptor can call
readfile in the same frame definition file.
In text frames, if one of those calls is made from the
then a subsequent use of longline
will always get the longest line of the file read by the
readfile associated with the text descriptor,
even if it was not the most recent use of readfile.
Created by unroff & hp-tools.
© by Hans-Peter Bischof. All Rights Reserved (1997).
Last modified 21/April/97