I tried the code below to replace a specific string in a text file. I am not getting any error but the replacement is not working. Please advice what i am doing wrong
B4X:
mynewfile=File.ReadString(File.DirDefaultExternal&"/testr/","Mai.txt")
mynewfile = mynewfile.Replace ("kliev", "jared")
File.WriteString(File.DirDefaultExternal&"/testr/","Mai.txt",mynewfile)