3 ms·
> 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
by cbsmith 13y ago
> 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.