Jon12345 wrote:There is nothing secret about it. We have a proprietary tool that takes our CSV data and squirts it into a website. The problem we are facing is that in this case, PGN format is more difficult to convert - for me anyway!
Ok, so the issue is what do you want the CSV file to look like. Please post an example of a CSV with 2 games scores, exactly like you need it.
Here is what 1 line of a typical CSV record looks like:
"Dailey","Don","Software Engineer",54,"540-366-3110"
A full record is on a single line and comma's between fields in the record. numbers do not have to be quoted although CSV is not very "standardized" about some of the details.
A pgn game has a lot of linefeeds in it, and I'm not sure how you represent records with several lines in CSV. In C you can use escape characters but I have no idea how it's handled in CSV - although it could probably be researched on the web.
So it's rather unclear exactly what it is you need. Also, pgn records have quotes inside of them that also need to be escaped properly.