Generate text when copy actors from one level to another

When copying actors from a level, exactly it’s copy a bunch of text like:

Begin Map
    Begin Level
        Begin Actor Class=/Script... Name=StaticMeshActor_UAID_10FFE... Archetype= "..."
            Begin Object Class=... Name=... Archetype=...
                StaticMesh=...
                bUseDefaultCollision=False
                ...
            End Object
        End Actor
        ...
    ...
...

I get this when I’m paste actors to a text editor.
My question is:
How the copy and paste works exactly?
Or how could I get this text from actors or spawn actors from this kind of text by blueprint or C++?