Help with adding a comma to the end of a text line
Posted: Sun Jun 10, 2007 12:58 am
Hope I can get help from the experts on how to add a comma to the end of a text line.
I did a serarch for "add comma" and got 1024 hits. Found one post but it didnt answer what I want to do.
I have a notepad text file of a list of words. One word on each line.
Example:
word1
word2
word3
I want to convert the entire file which could have 100's of words to a single string with a "comma" in between each word. So the results for above example would look like this:
word1,word2,word3
If there was some character I could see at the end of each line, I would be able to solve it - sorry for not being techinical and not knowing what value (if any) is at the end of each line.
thanks in advance
I did a serarch for "add comma" and got 1024 hits. Found one post but it didnt answer what I want to do.
I have a notepad text file of a list of words. One word on each line.
Example:
word1
word2
word3
I want to convert the entire file which could have 100's of words to a single string with a "comma" in between each word. So the results for above example would look like this:
word1,word2,word3
If there was some character I could see at the end of each line, I would be able to solve it - sorry for not being techinical and not knowing what value (if any) is at the end of each line.
thanks in advance