This is the handler that creates the file on writeToFile fPath, fName, fData
if objectP(gFileObject) then set gFileObject = 0 --Deletes the instance if it already exists set gFileObject = new(xtra "fileio") openFile( gFileObject, fPath & fName,0) -- Opens the file with R/W access delete (gFileObject) createFile( gFileObject, fPath & fName) openFile(gFileObject, fPath & fName, 0) writeString( gFileObject, fData) closeFile (gFileObject) set gFileObject = 0 -- Disposes of the instance end The handler is called from here on activate fData=receivedTex.item[2] writeToFile securityfPath, securityfName, fData ProcessData (fData) end activate ----- Original Message ----- From: "Tab Julius" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Monday, September 01, 2003 11:49 AM Subject: Re: <lingo-l> Erratic behavior with fileIO xtra > > > It might help if you would post the code you are using. > > > At 05:04 AM 9/1/03, Enrique Nivasch wrote: > >Hi, > > > >I'm having a weird problem with the fileio xtra. > > > >I want to create a text file on the disk and the file is only created every > >now and then. Sometimes Director creates the file, at other occasions it > >doesn't. > > > >The last time this happened I changed the global variable that contains the > >file path and the file was created. The next time I ran the program, without > >making any changes to the script, the file was not created. > > > >Any ideas? > > > >Thanks, > > > >Enrique > > [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!] > [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!]
