HTML, Ajax, JavaScript... question

I think the closet you'll get is a javascript cookie but that'll only write to a client side file.

A flat file hosted on the server will need a server side language to read and write, like php.

Ajax uses php or asp for server side functions as well, so I don't think there's an Ajax solution either.

Edit:

As above