Exporting Pokemon

If I export a pokemon is there a way to import it into another save file. I got a shiny golbat on my second save file and I want to put it into my first save file where I beat the game.

The export option is just to get information about your pokemon as a text file for debug purposes I think. The easiest and most common way to transfer pokemon between save files is with a trustworthy middleman who can take your pokemon and give it back once you switch files.

The export function is just to export your party for the battling sim.