Fix CSV file load bug

Bug fix for difference in getline behavior between Linux and Windows.