I'm trying to make a function for replacing a string with another one in file. What I mean... I'm inserting some string ( ex. "asd") then a function get this string and search for it in a file; if string exist -> ask for string to replace with and then write the new string in the file. What is the idea?