hellow
I need to convert each entity of a text file like --> abc,123 should be covert to 'abc','123'
thanks in advance
hellow
I need to convert each entity of a text file like --> abc,123 should be covert to 'abc','123'
thanks in advance
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Posted Feb 2, 2009, 6:58 PM EST
abc,123
def,456
ghi,789
You can read the file line by line with a StreamReader, split each line into an array using the strings Split method and the comma as a delimiter, take those and add them to an array of other strings formatting them like you want as you go. When the file has been read, overwrite it using a StreamWriter and a foreach loop.