• 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: Cross version compatible way to set the file pointer to eof
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cross version compatible way to set the file pointer to eof


  • Subject: Re: Cross version compatible way to set the file pointer to eof
  • From: Shane Stanley <email@hidden>
  • Date: Fri, 07 Dec 2001 12:01:37 +1100

On 7/12/01 11:50 AM +1000, Timothy Bates, email@hidden, wrote:

> On 7/12/01 11:26 AM, "Shane Stanley" <email@hidden> wrote:
>> Performance-wise,
>> write "string" to f starting at eof
>> and
>> write string to f
>> seem exactly the same to me. One just takes longer to type...
>
> I thought the file would have to seek to the end each time? Thus I thought
> it could be slow on a big file, but I did not check. If you are right then I
> have my solution already :-)

If you said "starting at (get eof)", then it would take time (and you'd lose
a byte each time). But in this case eof seems to behave more like an
enumeration that is passed to the command to resolve internally.

--
Shane Stanley, email@hidden


References: 
 >Re: Cross version compatible way to set the file pointer to eof (From: Timothy Bates <email@hidden>)

  • Prev by Date: Re: Cross version compatible way to set the file pointer to eof
  • Next by Date: Alternatives to Word (was: Re: Script problems with BBEdit 6.5)
  • Previous by thread: Re: Cross version compatible way to set the file pointer to eof
  • Next by thread: script
  • Index(es):
    • Date
    • Thread