in reply to IO mystery (Solved!)

Did you just look at the line counts or did you look at the actual output of the two variants?

Alexander

--
Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)

Replies are listed 'Best First'.
Re^2: IO mystery (Solved!)
by BrowserUk (Patriarch) on Jun 28, 2015 at 19:06 UTC

    With the file containing 4096 byte lines of random characters, watching them spew up the screen didn't tell me anything useful.


    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.
    I'm with torvalds on this Agile (and TDD) debunked I told'em LLVM was the way to go. But did they listen!

      I would have used diff on the two outputs.

      Alexander

      --
      Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)