comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: how to read a data file
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: how to read a data file [message #48626 is a reply to message #48625] Wed, 03 May 2006 13:34 Go to previous messageGo to previous message
nalaka.kodituwakku is currently offline  nalaka.kodituwakku
Messages: 4
Registered: May 2006
Junior Member
Yes, I did before puting this post but seems like there is some thing
that i do wrong.

This the code i wrote to read the first line. hopeing if this works i
could write a loop to read the rest. but didn't work.Can some one see
waht is wrong here? I tried with out the format too.this is the code

pro import_test

cts=INTARR(500)
Lable1=STRARR(500)
xvalues = fltarr(500)
yvalues = fltarr(500)
zvalues = fltarr(500)
Atom=STRARR(500)


openr, 105, 'sym1.mol2'

readf, 105, c, l, x, y, z, a, format='(d2, A3, f5.4, f5.4, f5.4, a2)'
print, c, l, x, y, z, a, format='(d2, a3, f5.4, f5.4, f5.4, a2)'
close, 105
free_lun,105
END
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Animation formats revisited
Next Topic: IDL source code formatter

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 08:26:06 PDT 2025

Total time taken to generate the page: 2.39967 seconds