Skip to main content
Solved

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

  • December 13, 2015
  • 2 replies
  • 55 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?

View original
Did this help you find an answer to your question?
This post is closed to further activity.
It may be a question with a best answer, an implemented idea, or just a post needing no comment.
If you have a follow-up or related question, 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
Influencer
  • 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+44
  • Safer
  • December 14, 2015
takashi wrote:

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.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings