I have a web page with several JavaScript functions. One of the things I need to do is to read a string from a server side file (say tmp.txt) into a Javascript variable and also to write the value of a Javascript variable to the file, overwriting previous contents. That is all I want to do.

How can I do that? Thanks

Joe