I have a loooooong list of users spooled in a text file.

Is there a way to make a delimited horizontal list out of this 'vertical' list of names?

Example:

Now:
JOHN
LISA
MARTIN

Result:
JOHN,LISA,MARTIN