Hmmm, some more details might be useful.
Do you want to convert EVERY carriage return into a comma, or should there be x number of values per comma separated line, with carriage returns at the end of each line?
The former could be accomplished with 'tr':
cat file | tr "\012" ","
(substitute \015 if you actually mean character 13)