![]() |
Institut für Astronomie und AstrophysikAbteilung AstronomieSand 1, D-72076 Tübingen, Germany |
![]() |
NUMLINES()
Return the number of lines in a file
This procedures became mostly obsolete in V5.6 with the introduction of
the FILE_LINES() procedure
nl = NUMLINES( filename )
filename = name of file, scalar string
nl = number of lines in the file, scalar longword
Set to -1 if the number of lines could not be determined
If Unix then spawn to wc; otherwise read 1 line at a time and count
Call FILE_LINES() if V5.6 or later
EXPAND_TILDE(), SPEC_DIR()
W. Landsman February 1996
Use /bin/sh shell with wc under Unix March 1997
Use EXPAND_TILDE() under Unix September 1997
Converted to IDL V5.0 W. Landsman September 1997
Call intrinsic FILE_LINES() if V5.6 or later December 2002
Always return a scalar even if 1 element array is input March 2004
[Home Page] [Software, Documentation] [IDL Documentation] [Quick Reference] [Feedback]