Grabbing large amounts of text from STDIN in O(n) time

This blog post has moved to https://matthewvaneerde.wordpress.com/2012/10/01/grabbing-large-amounts-of-text-from-stdin-in-on-time/