This should give you a start:

http://www.conitec.net/beta/afile_var_write.htm

You can write the positions into a text file and read them from that text file later.

Was this your question?