I/O question in programming

Adam, here is a picture of you suggestion. I get constant scrolling.