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

Home » Public Forums » archive » IDL input files.
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
IDL input files. [message #54531] Mon, 18 June 2007 09:52
ryanselk is currently offline  ryanselk
Messages: 16
Registered: May 2007
Junior Member
ive been reading some manuals and books for IDL but im not sure how to
solve this likely simple problem.

I have this I need to input to idl (.txt file):

Name = {Joe}
Department = {CS}
Age = {25}


and in IDL i need to save each attribute to its own variable. But if,
lets day, department is ommited I want it to not input age as
department. With c/c++ this isnt so bad as you can search the file for
a 'keyword' and print the value from there, but I cant find how to do
this in IDL.

I have this basic input program written but it doesnt do what I need
it to.


PRO inputer
print, 'starting input'

getfile = DIALOG_PICKFILE (/READ)

print, getfile

OPENW, 1, getfile

POINT_LUN, 1, 0

A = ' ' ; want extendable length if possible.

READU, 1, A

print, A

POINT_LUN, 1, 0
CLOSE, 1

END



If someone could point me in the right direction that would be of
great help!
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Yikes! Time for a blow-out party!
Next Topic: how get data from iSurface

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

Current Time: Wed Oct 08 17:41:24 PDT 2025

Total time taken to generate the page: 0.00664 seconds