Subject: | |
From: | |
Reply To: | VANCE,JEFF (HP-Cupertino,ex1) |
Date: | Thu, 28 Jun 2001 15:50:20 -0700 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
...
> Even if all the records appear to end with numeric and sequentially
> increasing values, you can't be sure that what you're looking at isn't
> customer application data rather than editor line numbers.
Thus, the :PRINT ...;NONUM option. The PRINT CI command determines if
the file is numbered or not, unless "NONUM" is specified. Here is the
algorithm used by PRINT and other CI code to see if a file is numbered:
----------------------
Loop until EOF or until first 10 records are read #don't do this for MSG
files...
If (the record length > 8 bytes) and
(the last 8 bytes are all numeric) and
(the current line number > past line number) then
keep Looping
Else
stop Looping
EndIf
EndLoop
----------------------
FWIW,
Jeff Vance, CSY
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
|
|
|