The Case Of The Unreadable File
    Yennie at aol.com 
    Yennie at aol.com
       
    Thu Feb  6 18:48:01 EST 2003
    
    
  
What kind of value do you get for "increment" in your script by the time you 
get an error in "the result"? Is it larger than the supposed file size 
returned by the detailed files()?
Here's one idea if it is:
function isValid theFile, fileSize
     open file theFile for read
     read from file theFile for 1 at (fileSize+1)
     put (the result = "eof") into vBool
     close file theFile
     return vBool
end isValid
I tested a variation here, and it works for valid files. Dunno if it helps 
any with your invalid ones- that might be hardwired underneath into whatever 
system file routine is returning the error.
HTH
> Any ideas?
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.runrev.com/pipermail/metacard/attachments/20030206/a3973d18/attachment.htm
    
    
More information about the metacard
mailing list