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'
> 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
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
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
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
> 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
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
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
> 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
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
>
>
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
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
> 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
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
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
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
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
17 matches
Mail list logo