i want to read a four digit number for a text file and then use that data.The problem is that i have tried using the w+ mode buts its opening the file and writing 1 to it and if i use the r+, it work but then when i open the file for a second time it reading the both numbers and not as four digit.
For example the file stores
1001// i want to read this content and overwrite this number with another four digit.
10011002/when i use r+ its printing this to the file but when i read from the file its gving me all the number.
Not working
Started by hbk, Mar 22 2010 05:22 PM
2 replies to this topic


Sign In
Create Account


Back to top









