News for hackers. Stuff that matters.
Re:Why I like Java by cbsmith on Tuesday March 25, 2014 @02:30AM (#7464231)
> If you write `for line in sys.stdin: sys.stdout.writte(line)` instead, you'll solve these problems by buffering line-by-line.

Except no. Then you run in to problems with a binary file that might not have a line break.

There are no comments on this comment yet.