Loading ...
Sorry, an error occurred while loading the content.
 

Re: Question on endofline and binary files + Suggestion

Expand Messages
  • asdasd asdasd
    Ah, this definitely works. Somewhat dirty, but success admits no complaints ;) Yakov, Tony, thanks a lot to both of you guys! -pardillaco ...
    Message 1 of 13 , Feb 28, 2007
      Ah, this definitely works. Somewhat dirty, but success
      admits no complaints ;)

      Yakov, Tony, thanks a lot to both of you guys!

      -pardillaco

      --- Yakov Lerner <iler.ml@...> wrote:
      > You can easily work around this. As follows:
      > 1. Always set noeof before saving/writing your
      > buffer.
      > 2. Have your script produce additional empty line
      > at end of its output when you need that last \n in
      > the final output file.
      > 3. Have your script not produce additional last
      > empty
      > line when you need no final \n in the final output
      > file.
      >
      > That's it. Hope it works for you.
      >
      > Yakov
      >




      ____________________________________________________________________________________
      Food fight? Enjoy some healthy debate
      in the Yahoo! Answers Food & Drink Q&A.
      http://answers.yahoo.com/dir/?link=list&sid=396545367
    Your message has been successfully submitted and would be delivered to recipients shortly.