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

Home » Public Forums » archive » Re: [Q] illegel character?
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: [Q] illegel character? [message #2532 is a reply to message #2522] Thu, 28 July 1994 06:27 Go to previous messageGo to previous message
landers is currently offline  landers
Messages: 45
Registered: May 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.
|>
|> I'd like to you have time to answer this question and please e-mail me
|> personally as well as posting here.
|> My e-mail address is : slumber@alliant.snu.ac.kr
|>
|> Thank you in advance.
|>
|>
|>

In a string, '\123' is interpreted as octal, and '\x34' or '\X34' as hex.
You are supposd to be able to use '\\' to represent a literal '\', but this
doesn't seem to work right in PV-WAVE CL 4.20 - don't know about IDL.
You can play games with concatenating strings, having each end in a \, like:
'c:\' + 'user\' + 'yong\' + 'xy1234.dat'

A bit awkward.

Good luck,
;Dave
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: Bug in WHERE_ARRAY.PRO
Next Topic: ticks/tickv/tickname bug?

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

Current Time: Sun Oct 12 09:18:35 PDT 2025

Total time taken to generate the page: 0.40308 seconds