Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! X
Hi,
I'm developing some functions with FileRepository.
I'm writing some lines of text into a .txt file.
I tried service of CreateTextFile & AppendToTextFile, with them all text will be written into same 1 line, no matter '/n /r \n \r' are included or not.
For example, I want to show:
Line 1
Line 2
Line 3
and it always shows:
Line 1Line 2Line 3
Any advise?
Solved! Go to Solution.
Hello,
\n works for me:
Things["SystemRepository"].CreateTextFile({ path: 'Test.txt', data: 'line1\nline2\nline3', overwrite: true });
Can you provide sample code where it doesn't?
/ Constantine
Thank you, but it's not working.
Hello,
\n works for me:
Things["SystemRepository"].CreateTextFile({ path: 'Test.txt', data: 'line1\nline2\nline3', overwrite: true });
Can you provide sample code where it doesn't?
/ Constantine
I tested it again, and '\n' works!
Hi,
Please see this article: for security reason html/javascript not allowed.
If you need this, please add a new Idea in Thingworx Ideas community.
Best regard,
Raluca Edu