Can't read text from file on OS 9

Richard Gaskin ambassador at fourthworld.com
Wed Sep 22 15:34:02 EDT 2004


Trevor DeVore wrote:

> I have a weird problem here.  I built a standalone for OS 9 using 2.5.  
> I'm testing under Classic but a client is testing on a machine running 
> OS 9.
> 
> In the code I use put URL ("file:"&pPath) into tMyVar to get text from a 
> file.  The path is one retrieved from the answer file command.  On OS X 
> and Windows the text is retrieved without a problem.  Not so on OS 9.  I 
> just get empty.  I also tried open file, read from file and close file 
> but that doesn't work either.  No errors are reported, just not data 
> from the file.
> 
> Can anyone else confirm whether this is happening on their end?

If you're running in OS 9 natively I'm stumped.  But if you're running 
Classic under OS X this is caused by paths being handled differently in 
OS 9 and Classic.

You could account for this if it was possible to know if you're running 
9 natively or in Classic, but alas it is not.

A request for that has been discussed on the improve-rev list.  I 
couldnt' find a Bugzilla request for it -- anyone know if it's been 
submitted.


Your issue may also be related to:
<http://support.runrev.com/bugdatabase/show_bug.cgi?id=2212>

-- 
  Richard Gaskin
  Fourth World Media Corporation
  ___________________________________________________________
  Ambassador at FourthWorld.com       http://www.FourthWorld.com


More information about the use-livecode mailing list