@KarlKnechtel The added version ranges (inside the code samples) don't add anything of use over just when the feature was introduced. It is assumed that if something is introduced in a version it is the intended way forwards. The title says that this question is about reading line-by-line and not reading binary files (which is very different). More @Wikipedia
Hover over any link to get a description of the article. Please note that search keywords are sometimes hidden within the full article and don't appear in the description or title.