append text to lines in a CSV file
Posted
by
MichaelMcCabe
on Stack Overflow
See other posts from Stack Overflow
or by MichaelMcCabe
Published on 2011-01-17T16:44:06Z
Indexed on
2011/01/17
16:53 UTC
Read the original article
Hit count: 188
This question seems to have been asked a million times around the web, but I cannot find an answer which will work for me.
Basically, I have a CSV file which has a number of columns (say two). The program goes through each row in the CSV file, taking the first column value, then asks the user for the value to be placed in the second column. This is done on a handheld running Windows 6. I am developing using C#.
It seems a simple thing to do. But I cant seem to add text to a line.
I cant use OleDb, as System.Data.Oledb isnt in the .Net version I am using. I could use another CSV file, and when they complete each line, it writes it to another CSV file. But the problems with that are - The file thats produced at the end needs to contain EVERY line (so what if they pull the batterys out half way). And what if they go back, to continue doing this another time, how will the program know where to start back from.
© Stack Overflow or respective owner