i need to update a text file in my website, i need to open it then view that text then retype the text on it it and then save it back to the server.
i am able to open the file using XMLHttpRequest, i can view the text on the file, now i need to over write the text on that file with text that i would input from a webpage, how can i do that using javascript and XMLHttpRequest? thanks.
Unfortunately, you cannot do that with only the JavaScript technology. You will have to use another technology in order to write to your file.
You can use PHP for instance and use the
method ( http://www.php.net/fwrite )