>I am having trouble checking to see if a file exists using FileIO. I know
>if I try to open a file that is not there I get an error of -37, which is
>a bad file name. How would I go about getting this into a variable so I
>can check the variable to see if the file exists?

Here's some code I'm using in my current project. Basically, you just call 
status(fileIOInstance)

           openFile (pStoryFile, pStoryFileName, 1) -- open the file as 
read-only
           err = status(pStoryFile)
           if err = 0 then -- the file is open

             pNextStory = readFile(pStoryFile)
             err = status(PStoryFile)

Cordially,

Kerry Thompson

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
[EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
learning and helping with programming Lingo.  Thanks!]

Reply via email to