what is the best way to store/restore the listview contents to/from file?

thanks!