Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ () — Motorola System V 88k Release 3.2 Version 1.2C

Media Vault

Software Library

Restoration Projects

Artifacts Sought



  READFILE(1(
F
)
F
orm and Menu Language Interpreter UtilitiR
e
E
s
)
A
DFILE(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

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026