Re: Write to file
Re: Write to file
- Subject: Re: Write to file
- From: Emmanuel <email@hidden>
- Date: Tue, 27 Feb 2001 07:41:13 -0500
At 6:56 -0500 27/02/01, Rick Plummer wrote:
>
>
I need to write data to a file to read back prefs. How can I overwrite the
>
entire
>
file each time?
I won't be checking, but here is what I would try:
------------------------
set theFileRef to open for access [ref to the file] with write permission
set eof theFileRef to 0
write [whatever] to theFileRef
close access theFileRef
------------------------
HTH
Emmanuel