>i'm trying to write some info using fileIO. my routine looks like this:
>
>on writeFileIO whichFile, whichData
> myFile=new(xtra "fileIO")
> delete(myFile)
> createFile(myFile, whichFile)
> openFile(myFile, whichFile, 0)
> writeString(myFile,whichData)
> closeFile(myFile)
>end writeFileIO
FileIO's delete() command only works on a file that's already been opened.
Try placing an openFile() command above the delete() command.
You'll also want to place some error checking in there using fileIO's
status() and error() methods. One good reference for fileIO methods can be
found here:
"ReadMe for the Director 5.01 FileIO Xtra"
http://www.macromedia.com/go/3177
(It's still up to date for D8 AFAIK).
--
Mark A. Boyd
Keep-On-Learnin' :)
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/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!]