write to file command
devin_asay at byu.edu
Mon Feb 11 17:57:01 EST 2002
At 11:11 PM +0100 2/11/02, yves COPPE wrote:
>in the transcript dictionary, we find :
>If the file already exists, the write to file command does not
>remove characters from it. For example, if the file is 100
>characters long, and you write a value 60 characters long to the
>start of the file, the file now contains the 60 characters of the
>value, followed by the last 40 characters of the original file.
>Is there any other way to write data to a file without having any
>chars over from the previous record ?
Yes, the key is to use the "open file for write" form of the open
file command. Then, any "write to file" operation will completely
replace the contents of the file.
Humanities Research Center
Brigham Young University
More information about the Use-livecode