My code is in the attached.
When I create my new textfile, there is always that trailing newline at the last line which I do not want. This is what the solution text file looks like:
Text
Text
Text
However, this is what my textfile looks like
Text
Text
Text
Empty New Line
I know there has to be some while loop or if statement that I should be using but I can't figure it out (nor where to put it in my code). Was wondering if anyone could help. thank you.
Best Answer