re deleting from a text file with fileIO -is this a bug ? and Erratic behavior with fileIO xtra

2003-09-01 Thread Lee Blinco
Hi agian, excatly the same thing happens with fileXtra 4, so i've now come to the conclusion that fileIO can be relied on NOT to work properly if you use some other xtra which access the file system in some way as it always thinks the file just deleted in fact still exists if the circumstances i'

RE: re deleting from a text file with fileIO -is this a bug ?

2003-08-29 Thread Kerry Thompson
> on mouseUp > set gresult="" > set gresult = baGetFilename("select","","","",0,"Please select a > file",false,-1,-1) > go(1) > end > > then if a file below the movies directory is selected with > baGetFilename then fileIO returns 'file already exists' this > is what i can not understand. why

re deleting from a text file with fileIO -is this a bug ?

2003-08-29 Thread Lee Blinco
hi again, there still seems to be some confusion here. In my original post ( and in the script that is showing this odd behaviour) i did close the file. frame script on frame 2 on exitFrame me set schedulefile =new(xtra "fileio") createFile(schedulefile, "tempschedule.txt") filestatus

Re: re deleting from a text file with fileIO -is this a bug ?

2003-08-28 Thread Howdy-Tzi
On Thursday, Aug 28, 2003, at 12:11 America/Chicago, Charlie Fiskeaux II wrote: I think the PropSave Xtra is one of the least known yet most useful secrets in all Xtra-dom. Yes, it's quite a useful tool... And at a great price! ;) It's located at http://pimz.com/?id=xtras§ion=propsave Warren

Re: re deleting from a text file with fileIO -is this a bug ?

2003-08-28 Thread Charlie Fiskeaux II
I think the PropSave Xtra is one of the least known yet most useful secrets in all Xtra-dom. Because it saves and reads your Director data straight to disk, there's almost no chance of data loss, plus it's quick and easy. It's located at http://pimz.com/?id=xtras§ion=propsave Charlie Fiskeaux II

RE: re deleting from a text file with fileIO -is this a bug ?

2003-08-28 Thread Kerry Thompson
> kerry - these scripts are there to show my problem, as you > say a file should be created and then deleted so when the > playhead returns to frame 2 after running the button script > it should then do this again BUT if i have selected a file > from a directory below the movies directory by e

re deleting from a text file with fileIO -is this a bug ?

2003-08-28 Thread Lee Blinco
Hi again kerry - these scripts are there to show my problem, as you say a file should be created and then deleted so when the playhead returns to frame 2 after running the button script it should then do this again BUT if i have selected a file from a directory below the movies directory by either

Re: deleting from a text file with fileIO -is this a bug ?

2003-08-28 Thread Charlie Fiskeaux II
Try this order and see if it helps: on exitFrame me schedulefile=new(xtra "fileio") openFile(schedulefile, "tempschedule.txt", 0) delete(schedulefile) createFile(schedulefile, "tempschedule.txt") filestatus=status(schedulefile) alert schedulefile.error(filestatus) delete(schedulefile

RE: deleting from a text file with fileIO -is this a bug ?

2003-08-28 Thread Kerry Thompson
> Hi again, > right it simply wasn't working for me so i've eventually > stripped it down to what i see is causing the problem.Can > anyone offer an explanation for the following. > frame script on frame 2 > > on exitFrame me > > set schedulefile =new(xtra "fileio") > createFile(schedulef

Re: deleting from a text file with fileIO

2003-08-28 Thread Anand Ravi
Original Message - From: "Daniel Nelson" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, August 27, 2003 10:33 PM Subject: Re: deleting from a text file with fileIO > Oops. Thanks for correcting me. > > Regards, > > Daniel > >

Re: deleting from a text file with fileIO -is this a bug ?

2003-08-28 Thread Lee Blinco
Hi again, right it simply wasn't working for me so i've eventually stripped it down to what i see is causing the problem.Can anyone offer an explanation for the following. My project stores a schedule in a text file, one of the parameters stored in the file is a filename input by the user for this

Re: deleting from a text file with fileIO

2003-08-27 Thread Daniel Nelson
Oops. Thanks for correcting me. Regards, Daniel Kerry Thompson wrote: > > Don't delete and create again, just open in write mode (or > > read/write) and start writing with the file pointer at 0. > > Actually, that won't shorten the file. It will write the new stuff, and > leave old stuff in th

RE: deleting from a text file with fileIO

2003-08-27 Thread Kerry Thompson
> Don't delete and create again, just open in write mode (or > read/write) and start writing with the file pointer at 0. Actually, that won't shorten the file. It will write the new stuff, and leave old stuff in the rest of the file. You need to delete it and write it again. It's a known issue wi

Re: deleting from a text file with fileIO

2003-08-27 Thread Charlie Fiskeaux II
t; <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, August 27, 2003 11:35 AM Subject: deleting from a text file with fileIO > Hi, > i see that the only delete capabilities of FileIO is to delete the whole > file, i need to rewrite a file with less data, so i tho

re : deleting from a text file with fileIO

2003-08-27 Thread Lee Blinco
further observations - as i was getting nowhere i wondered if using buddy api would help me by copying a file over my original eg set schedulefile =new(xtra "fileio") createFile(schedulefile, "tempschedule.txt") filestatus = status(schedulefile) alert schedulefile.error(filestatus

Re: deleting from a text file with fileIO

2003-08-27 Thread Daniel Nelson
Don't delete and create again, just open in write mode (or read/write) and start writing with the file pointer at 0. Regards, Daniel [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

deleting from a text file with fileIO

2003-08-27 Thread Lee Blinco
Hi, i see that the only delete capabilities of FileIO is to delete the whole file, i need to rewrite a file with less data, so i thought delete the file and then create it again with the new data. I am having no success here though, i get a ' file exists' error if i try to create a file with the sa