Saving/restoring text cursor position?

Hi there.

I wonder if someone could tell if there is a way to save and restore the position of the i-beam cursor in a text document. I suspect not, but I just thought I'd check.

Thanks.