How to not use "\r" in last "writeline".
Posted: Fri Aug 19, 2016 5:35 am
Hello,
I'm writing a line to a text document and I am using "\r" to make each entry on a new line. However, I don't want to use "\r" on the last entry because I need to write another line without skipping a line. Hopefully this makes sense without posting the whole code.
The text document that I end up with looks like this...
1.Hello my name is Bob.
2.Hello my name is Sam.
3.Hello my name is Jim.
4.
5.There are three total names.
I need it to look like this...
1.Hello my name is Bob.
2.Hello my name is Sam.
3.Hello my name is Jim.
4.There are three total names.
I need to ignore the last "\r" but I will never know how many entries I am writing to the document.
Thanks,
Adam
I'm writing a line to a text document and I am using "\r" to make each entry on a new line. However, I don't want to use "\r" on the last entry because I need to write another line without skipping a line. Hopefully this makes sense without posting the whole code.
The text document that I end up with looks like this...
1.Hello my name is Bob.
2.Hello my name is Sam.
3.Hello my name is Jim.
4.
5.There are three total names.
I need it to look like this...
1.Hello my name is Bob.
2.Hello my name is Sam.
3.Hello my name is Jim.
4.There are three total names.
I need to ignore the last "\r" but I will never know how many entries I am writing to the document.
Thanks,
Adam