ihewitt / poolviewer

Poolviewer - Opensource Swimovate Poolmate application
http://ihewitt.github.io/poolviewer/
GNU General Public License v2.0
6 stars 4 forks source link

Fix Read/Save CSV pair #24

Closed audetto closed 9 years ago

audetto commented 9 years ago

This is my swim data

http://pastebin.com/hwS6y5D3

when the app writes it out with SaveCSV there is a '\n' at the end of the len_styles which breaks the format and ReadCSV does not work any longer.

The '\n' seems to be a natural side effect of QFile::realLine().

On the other hand, QTextStream::readLine() strips the trailing '\n'. So this is the change. The written file is not the same as the input as it contains a lot of ;;;;;;;;;; which I think mean len_styles with no information. But not I can re-read it.

Andrea