Added solution for line by line read of a file