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 same
name as the one i've just deleted, so i put the create file command someway
down the timeline, tried repeat while the status <> 0 and even tried a
timeout to make sure that the old file is definitely deleted , but all to no
good my timeout just keeps saying that the file exists !
-- timeout function
set schedulefile2 =new(xtra "fileio")
createFile(schedulefile2, "schedule.txt")
--openFile(schedulefile2, "schedule.txt",0)
filestatus = status(schedulefile2)
alert string(filestatus)
if filestatus = 0 then
calendar_list_string = string(gcalendarlist)
writeString( schedulefile2, calendar_list_string)
timeout("fileTimer").forget()
end if
closeFile(schedulefile2)
set schedulefile2=0
I'm sure that there must be a way to do this, a search on macromedias site
said the way to shorten a file is to delete then recreate so does anyone
have a working method for replacing the contents of a file with a shorter
amount of data ie not leave unwanted extra characters when rewriting the
file from the beginning.
thanks a lot
Lee Blinco
Multimedia Developer
AVR Productions
+44 (0)1462 819603
[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!]