First of all this is my Code:
c = open('Tasks//Task_Counter.txt', 'r+')
okay = c.read().splitlines()
which_task = int(okay[0])
this_task = which_task + 1
which_port = int(okay[1])
this_port = which_port + 1
c.truncate(0)
c.write(str(this_task))
c.write("\n")
c.write(str(this_port))
In the Task_Counter.txt file are basically just these two lines written down:
10
9259
Now I wanna replace them with:
11
9260
But somehow this is the result:
11
9260
As you can see there is just free Space and I dont know why there is this free Space. Can someone help me with this?