Parse files line by line

No need to read the entire file contents and then scan character by character.
We can pass the file descriptor to the Parser and let it read lines as needed.
Removing some ruby 1.8 specific code