12-07-2016 03:38 AM
Hello,
I want to write a 2D Array of sting in a text file with good alignment, kann someone help?
I will attach the 2D array of string and the wrong text file.
Best regard
Solved! Go to Solution.
12-07-2016 03:42 AM - edited 12-07-2016 03:46 AM
Hi LLX,
open your text document with Excel (or any other tool working with spreadsheets) and everything looks fine!
As I already told you here it all depends on the tool for viewing your text document!
Btw.:
- What's wrong with your text file? All data is written to the text file as expected…
- Define a "good formatting" when you you need one…
A workaround suitable for your example text: write those numbers using a format string of "%#.6f"…
A possible solution is to use multiple spaces between your numbers - but then you (might) get problems when loading your text files with Excel…
12-07-2016 03:51 AM
Hello GerdW,
Thanks for your reply, but I must use the text editor to open and save the file.
Best regard
12-07-2016 03:58 AM
12-07-2016 04:06 AM
Hi GerdW,
thanks a lot. Amazing Solution. In this project I must always deal with the format of the string, do you know if there is a tutoriums that deal with the string formatting.
Best regard
12-07-2016 04:12 AM
10-10-2018 07:57 AM
Right GerdW 🙂