Input/Output Learning Mode

How would you parse the contents of a multi-line text file formatted using a fixed pattern without pre-loading its contents into a variable and then processing them in memory?