| Re: [Q] illegel character? [message #2534 is a reply to message #2532] |
Thu, 28 July 1994 08:40  |
djackson
Messages: 31 Registered: June 1993
|
Member |
|
|
In article <1994Jul26.061603.10056@news.snu.ac.kr>
s_lumber@cd4680.snu.ac.kr (JeeYong Park) writes:
> In programming IDL3.0, whenever I tried to open files with name starting
> with number or chracter x, I ran into an illegel character error.
> I mean whean I try " openr, 1, 'c:\user\yong\xy1234.dat' " those errors
> occur. I guess IDL recognize something starting with \x or \number as
> hex or octal number.
> I'd like to know how to read this kind of file except renaming file name.
Annyong haseyo,
I think the " openr, 1, 'c:\user\yong\xy1234.dat' " problem you're
having is
exactly as you described, that \x... is treated as a numeric constant.
This
was changed, I believe in version 3.1 or 3.5 so that it is not treated
this
way, for the convenience of users on DOS machines. (this caused some
problems with people who relied on the \x... notation, but your problem
is
now the reverse!)
If you have any way to upgrade, this will provide the solution, or you
could
try " openr, 1, 'c:\user\yong\' + 'xy1234.dat' " which might work fine
in
some cases. Or in general, '\' + 'x' should be an adequate
replacement.
Cheers,
-Dick
Dick Jackson djackson@ibd.nrc.ca Standard disclaimer
Institute for Biodiagnostics, National Research Council Canada
|
|
|
|