Re: We have file_lines for lines in IDL. What about file_rows? [message #53231] |
Wed, 28 March 2007 09:42 |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
DirtyHarry writes:
> I know there is an excellent functions to count the number of lines of
> data file...
>
> What about file_rows? Is there any functions to check the number of
> rows?
>
> If there is no functions, what can I do if I want to have the number
> of rows of a big data file, for example, (*, 169245)? I found the
> number of lines using file_lines function. The number of rows around
> 100, but I need the exact number. Do I have to count one by one?
Uh, rows *are* lines. Perhaps you are looking for columns.
Here is an article:
http://www.dfanning.com/fileio_tips/read_columns.html
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|