its adding an empty line in the end of the text file and i cant find a condition to stop that, if anyone has and idea and a simple way to fix this it would be much appreciated.<