Quote:
Originally Posted by hatfani
Those things I already knew before, I appreciate your attention but it's not exactly what I wanted to do.
I wanted to overwrite it, appending interrupting me when I run the script once again - cause it's appending more unnecessary data again.
|
It's not at all clear what you're trying to accomplish, to me.
Your original post says read one line from a file that has the value of 19990, then loop from 19990 to 19999 and save the loop value into a text file, overwriting each time. That wasn't doing what you wanted, as it always showed 19999.
It was however, doing what you told it to do, which is the nature of programming...the darn machines will always only do what you tell them to do.
You were told how to avoid overwriting by appending, but that wasn't what you wanted either.
Please try to explain exactly what you're trying to accomplish, because I, for one, don't understand.