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

In this topic there’s answers to your question:

Auto-save system

I want to save the entire level to the disk and load it later.

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.