Hello to all.
Sorry this is not really a Blitz problem, but maybe someone can help.
I'm making a quiz game and I want to export a lot of Excel data to CSV and ultimately make it a DATA statement, but because 90% of the CSV file is strings, I need each entry to have "quotes" around it and wondered if anyone knew a fast way to do this?
Ive tried doing a Search and replace, e.g. replace the commas with "," but this gets messy because many of the strings contain commas and the last part of the data contains numbers which I dont want as strings.
Here's an example...
I have this in CSV:
This is a question,answer1,answer2,1,2
and I want:
Data "This is a question","answer1","answer2",1,2
I just want to avoid going through it line by line if possible.
Any help greatly appreciated.
Sorry this is not really a Blitz problem, but maybe someone can help.
I'm making a quiz game and I want to export a lot of Excel data to CSV and ultimately make it a DATA statement, but because 90% of the CSV file is strings, I need each entry to have "quotes" around it and wondered if anyone knew a fast way to do this?
Ive tried doing a Search and replace, e.g. replace the commas with "," but this gets messy because many of the strings contain commas and the last part of the data contains numbers which I dont want as strings.
Here's an example...
I have this in CSV:
This is a question,answer1,answer2,1,2
and I want:
Data "This is a question","answer1","answer2",1,2
I just want to avoid going through it line by line if possible.
Any help greatly appreciated.