Accessing Windoze Files ( Newby Question) 
Author Message
 Accessing Windoze Files ( Newby Question)

The following button action code displays the absolute in a message
bopx, then reads a line-o-text from a file, then chages button caption
to the line-o-text:

dim f as FolderItem
dim g as TextInputStream

f = GetFolderItem("")

msgbox "opening " + f.AbsolutePath + "A.B"

g = GetFolderItem(f.AbsolutePath+"A.B").openAsTextFile

PushButton3.caption = g.ReadLine

The absolute path appears correct for both Mac and PC, but  I always get
the NilObject Exception of death when run on Windoze 95 (meaning Windoze
can't find the file???).

Any suggestions of what the problem may be?

Thanks,

Dave (EE, not a programmer...)



Sat, 08 Dec 2001 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Help with Windoze Files Access!

2. File.expand_path with files beginnig with ~ (tilde) on Windoze

3. Access to Windoze Registry?

4. Windoze Scheme implementation with access to ports?

5. Low level keyboard access under Windoze?

6. Access PC Sound Card Under Windoze?

7. Exclusive file access or serial access to external file

8. Newby: Dictionaries as file objects?

9. Newby question

10. Newby with Question

11. VHDL Instances : newby question

12. newby question: LODS usage

 

 
Powered by phpBB® Forum Software