How can I save all actors and their positions to a file?

I am still having trouble even trying to figure out generally how to get every single piece of data, write it and then load it back.