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

Home » Public Forums » archive » open and read a file
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
open and read a file [message #45864] Mon, 10 October 2005 14:25
ChiChiRuiz@gmail.com is currently offline  ChiChiRuiz@gmail.com
Messages: 32
Registered: October 2005
Member
Hi there, I know this is a very easy task to do, but for some reason I
can't get it to work. I have a .img file into the IDL code folder
(where I save all the source code), then I run the following lines:

openr, 1, filepath('filename.img')
image = fltarr(xsize, ysize, zsize)
readu, 1, image
close, 1

but I keep getting error message that the system cannot find the file
specified.
I thought as long as the .img file is located in the source code
folder, i don't need to list the full address. What did I do wrong?
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: g++ with IDL call_external
Next Topic: How to display live Video in IDL

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

Current Time: Fri Oct 10 01:58:19 PDT 2025

Total time taken to generate the page: 0.23679 seconds