in reply to Re^4: Textfile to csv with a small twist
in thread Textfile to csv with a small twist

The data is a simple sample.
No it isn't, it has embedded newlines.
jZed provided no solution to the task at hand
That's because I was waiting for the OP to clarify what he/she really wanted. Now that the OP has done that, I've given the example, please see my code.
  • Comment on Re^5: Textfile to csv with a small twist

Replies are listed 'Best First'.
Re^6: Textfile to csv with a small twist
by ChrisR (Hermit) on Aug 26, 2005 at 12:44 UTC
    ok. The fact that you were waiting for the clarification of the post which was quite vague makes sense. Perhaps I should have done that myself.

    I still see the sample data as "simple". Virtually every text file I parse has embedded new lines.

    I'll have to take a look at some of the text/csv parsing modules now. Your code made them look very useful and makes me think I have been working too hard at parsing in the past.