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

Home » Public Forums » archive » command line arguments
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
command line arguments [message #62644] Mon, 29 September 2008 09:01
xiao zhang is currently offline  xiao zhang
Messages: 81
Registered: June 2008
Member
HI~ guys , is these lines right? Why I cannot open the file based on
the following errors. I know the file is there :( Thank you

filename=command_line_args()
print,filename
file='filename'
OPENR, lun, file, /GET_LUN
rows = File_Lines(file)
header = STRARR(14)
READF, lun, header
PRINT, header
Point_Lun, -lun, currentLocation

Or like this?

filename=command_line_args()
print,filename
OPENR, lun, 'filename', /GET_LUN
rows = File_Lines('filename')
header = STRARR(14)
READF, lun, header
PRINT, header
Point_Lun, -lun, currentLocation
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: surface plots into an image
Next Topic: IDL Workbench - Multiple files opened after compiling

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

Current Time: Wed Oct 08 17:43:12 PDT 2025

Total time taken to generate the page: 0.00747 seconds