ELcollection , files commands

Questions about MultiCharts and user contributed studies.
User avatar
Smoky
Posts: 507
Joined: 03 Dec 2010
Location: Thailand
Has thanked: 97 times
Been thanked: 115 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: 718
Joined: 16 Dec 2006
Location: www.abctradinggroup.com
Has thanked: 125 times
Been thanked: 408 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: 507
Joined: 03 Dec 2010
Location: Thailand
Has thanked: 97 times
Been thanked: 115 times

Re: ELcollection , files commands

Postby Smoky » 15 Aug 2017

Thanks, ABC ;-)


Return to “MultiCharts”