How to process a file line by line?

How to process a file line by line? The file is a plain text line like input.txt. As an example, the process can be to just print it out.

asked Mar 29 by SA (240 points)

Related questions

8 answers
asked Apr 6 by anonymous
4 answers
0 answers
0 answers
asked Apr 10 by anonymous
Welcome to Do This In Various Langs (dtivl), where you can ask questions and receive solutions in various programming languages.
Copyright © SysTutorials. User contributions licensed under cc-wiki with attribution required.
Hosted on Dreamhost

...