Changed getDataRange().

Closed the file before returning the lines read from it.
Mainly to fix issues on windows.