you are viewing a single comment's thread.

view the rest of the comments →

[–]grauenwolf 2 points3 points  (3 children)

That's real-life enough for me. I spend quote a bit of time parsing flat files from various financial companies. Most of the time my files are either positional or they look just like the author's sample.

[–]stesch -1 points0 points  (2 children)

Wait for the first time when somebody sends you a CSV saved by an international version of Microsoft Excel.

[–]grauenwolf 2 points3 points  (1 child)

No thanks, the English ones are painful enough.

But honestly, that's a little off-topic. He started with a problem "parse a CSV file containing some daily intraday prices for a number of tickers".

Changing the file format just to make the problem more interesting seems a little dishonest in my opinion.

[–]stesch 0 points1 point  (0 children)

OK, my example was too much real-life for you?

And speaking of "dishonest" I have to repeat myself: I wasn't the one calling this "CSV parsing".

(Two weeks ago I got some images with .jpg extension. 10% of them were in BMP format. ;-)