Createa CSV file, How to add a line feed?.. Dummy question

Questions about MultiCharts and user contributed studies.
arjfca
Posts: 1273
Joined: 23 Nov 2010
Has thanked: 720 times
Been thanked: 222 times

Createa CSV file, How to add a line feed?.. Dummy question

Postby arjfca » 03 Jun 2012

Hello

I want to create a CSV file that would then be read by Excel. How can I add a line feed to terminate a line of data

Line1: H1, H2, H3,.....H24, "Line terminated"
Line2: H1, H2, H3,.....H24, "Line terminated"
Line3: H1, H2, H3,.....H24, "Line terminated"
Line4: H1, H2, H3,.....H24, "Line terminated"


Martin

vking
Posts: 235
Joined: 21 May 2009
Has thanked: 51 times
Been thanked: 41 times

Re: Createa CSV file, How to add a line feed?.. Dummy quest

Postby vking » 03 Jun 2012

Martin - You can use this.

viewtopic.php?f=1&t=10449

FileAppend(filename,numtostr(H1,0)+","+numtostr(H2,0)+newline);

For a sample code - you can check this link:

viewtopic.php?f=1&t=10449
These users thanked the author vking for the post:
arjfca


Return to “MultiCharts”