Re: Read Total lines in an ASCII file [message #33237 is a reply to message #33175] |
Sun, 15 December 2002 23:39   |
Karsten Rodenacker
Messages: 98 Registered: July 1997
|
Member |
|
|
Maria wrote:
> I bet my question seems simple to all of you but...does anybody know
> how to read the total number of lines in an ASCII file?
>
> Also, is there any command in IDL such as if ( variable_char is char)
> then give me a boolean (true or false)?
>
> Thanks a lot!
> Maria.
I am using this structure :
mt = {version:1., $
datastart:0L, $
delimiter:0b, $
missingvalue:!values.f_nan, $
commentsymbol:'', $
fieldcount:[1l], $
fieldtypes:7, $
fieldnames:'field1', $
fieldlocations:0l, $
fieldgroups:[0]}
aa = read_ascii(filnam, template = mt)
to read ascii data with the idl reading routine. May be that helps.
Regards
--
Karsten Rodenacker ()
------------------------------------------------------------ -------------:-)
GSF - Forschungszentrum Institute of Biomathematics and Biometry
D-85758 Oberschleissheim Postfach 11 29
Tel: +49 89 31873401 | FAX: ...3369 | rodena@gsf.de | Karsten@Rodenacker.de
http://www.gsf.de/ibb/homepages/rodenacker
|
|
|