how can i change the data of my text file with the user input? eg. i prompt for user to enter new no. and with this new number it will replace the old number with the new one. i know i need to wite to the file but how can i replace my old number wif the new entered number?
this is how my file looks like:
username:phone_number:id