Originally posted by TheDefender
Take a look at the following functions in the manual:
[man]fopen[/man], [man]preg_replace[/man] and [man]fwrite[/man]. What do you have for code so far?
And these functions in PHP will help you do just that. If you don't want to use PHP to do this, then you need to decide which language you want to use, and post your question on an applicable forum.
In PHP, use fopen to open the text file and get it's contents into a string. Use preg_replace to replace the commas with carriage returns, and use fwrite to write the converted string back to a text file.