ELcollection , files commands

Questions about MultiCharts and user contributed studies.
User avatar
Smoky
Posts: 390
Joined: 03 Dec 2010
Location: Thailand
Has thanked: 65 times
Been thanked: 104 times

ELcollection , files commands

Postby Smoky » 14 Aug 2017

I use this :

Code: Select all

value1=ListN.WriteFile(ASraID,"C:\CSV\ASRA.csv");
but i don't find how to write at the end of the file , with append command ...

Maybe someone can help me

Thanks

User avatar
ABC
Posts: 626
Joined: 16 Dec 2006
Has thanked: 119 times
Been thanked: 355 times
Contact:

Re: ELcollection , files commands

Postby ABC » 15 Aug 2017

Smoky,

as far as I am aware WriteFile will create a new file and you can't append to an existing file with it. You could loop through your list and use FileAppend or read the contents of your file into the list first and then write it back together with your other list values.

Regards,

ABC

User avatar
Smoky
Posts: 390
Joined: 03 Dec 2010
Location: Thailand
Has thanked: 65 times
Been thanked: 104 times

Re: ELcollection , files commands

Postby Smoky » 15 Aug 2017

Thanks, ABC ;-)


Return to “MultiCharts”