Hi,
I've been googling but no luck so far ![]()
Hope someone can help out.
I am saving data to a text file and it works nicely. However, I would like to put TAB characters into the saved lines for readability.
- Lets say I have:
2022.08.02_19.39_12
2022.08.02_19.40_5 - I want these lines to save to the text file as:
2022.08.02_19.40_5 *****
2022.08.02_19.39_12 ************
2022.08.02_19.40_103 ******************** <103 times *
The code that should generate the string would be something like this:
String logEntry = datestring + "_" +
strHour + "." +
strMinute + "_" +
String(motionCount); // logEntry: 2022.07.08_09.03_274 > 22.07.08 09:03 27.4ºC
logEntry = logEntry + <<< TAB CHARACTERS GO HERE>>>;
for(int i=0; i<=motionCount; i++){
logEntry = logEntry + "*"
}
Could anyone tell me what goes here: <<< TAB CHARACTERS GO HERE>>> ?
Thanks for reading!