ATL write to file [message #1001783] |
Thu, 17 January 2013 11:15 |
Eclipse User |
|
|
|
Dears,
I try to write some strings in a sequence to a file.
I use the "writeTo" method as follows:
mySequence->collect(x | x.toString().writeTo('path'));
But this writes the last string only, so it overwrites what's in the file, I need to append.
So, what method shall I use?
|
|
|
Re: ATL write to file [message #1001887 is a reply to message #1001783] |
Thu, 17 January 2013 14:10 |
Hugo Bruneliere Messages: 674 Registered: July 2009 |
Senior Member |
|
|
Hello,
You first have to build the full string you want to obtain, and then finally make a call to the writeTo method.
This latter does not provide concatenation support and simply overrides the current content of the file if existing.
Best regards,
Hugo
--------------------------------------------------------
Hugo Bruneliere, PhD
NaoMod team (IMT Atlantique & LS2N-CNRS)
Nantes - France
--------------------------------------------------------
|
|
|
Powered by
FUDForum. Page generated in 0.04006 seconds