• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Write to file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Write to file (From: Rick Plummer <email@hidden>)

  • Prev by Date: Write to file
  • Next by Date: Re: Project scope - is it worth doing? (Doug Messick)
  • Previous by thread: Write to file
  • Next by thread: Re: Write to file
  • Index(es):
    • Date
    • Thread