How to export a column vector to text file with writedlm function

Use print, not println; the latter appends a newline. Or just use writedlm