Fixed file not being read past first line

The 'with open as' doesn't actually loop as I expected. Stops
reading after the first line.

Signed-off-by: Thameera Senanayaka <thameera123@gmail.com>