Create txt file with line breaks in TI process
Posted: Tue Sep 11, 2012 8:01 pm
Dear forum,
did anybody ever manage to write a .txt file with line breaks in TI? The background of this is, I currently create a status email message which is properly formatted, and I would like to simply store the same text in a flat log file, but asciioutput keeps swallowing the line breaks. I tried it with CHAR(10), CHAR(13) and \n, no success. I also tried ExecuteCommand('cmd /c echo ' | sMessage | ' > filename.txt', 1), but no avail.
I know I could do this with a series of asciioutput commands, but I would much prefer a nicer way... Any hints?
Thank you
Holger
did anybody ever manage to write a .txt file with line breaks in TI? The background of this is, I currently create a status email message which is properly formatted, and I would like to simply store the same text in a flat log file, but asciioutput keeps swallowing the line breaks. I tried it with CHAR(10), CHAR(13) and \n, no success. I also tried ExecuteCommand('cmd /c echo ' | sMessage | ' > filename.txt', 1), but no avail.
I know I could do this with a series of asciioutput commands, but I would much prefer a nicer way... Any hints?
Thank you
Holger