Skip to main content
Solved

How to write multiple lines into a text file using CSV writer?

  • December 13, 2015
  • 2 replies
  • 79 views

I would like to write a text file and put the information on multiple lines using the CSV writer. I see how to put multiple fields but I cannot find how to put my information on multiple lines.

Thanks for your help!

Best answer by takashi

Probably the CSV writer cannot be used to write a csv record containing a newline within it. How about using the Text File writer instead?

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

2 replies

takashi
Celebrity
  • Best Answer
  • December 13, 2015

Probably the CSV writer cannot be used to write a csv record containing a newline within it. How about using the Text File writer instead?


mark2atsafe
Safer
Forum|alt.badge.img+59
  • Safer
  • December 14, 2015

Probably the CSV writer cannot be used to write a csv record containing a newline within it. How about using the Text File writer instead?

I've filed an enhancement request to add carriage return/line feed as a separator option on the CSV Writer, which would solve this in one go. We'll see what the developers say, but it won't be a high priority item I don't think.