Contents - Index


NFILEROWS

 

NFILEROWS takes one argument which must be either a string constant or a string variable.  The string contains the name of a text file stored on the disk.    The function returns the number of rows in that file.   If the file does not exist or it cannot be read, the function returns 0. 

 

 

Example:  

 

N=nfilerows('C:\TEMP\MyFile.dat') "number of rows of data in the file"

 

 

See also: NLOOKUPROWS

 Mathematical Functions

 ImportText