In my code i am using pygame and i am reading text files into maps. I am trying to create a long map that randomly joins my map segment text files together in a horizontal way to create a long map. How would i join multiple text files together and write the result to a new file.

Lets say text file 1 is equal to the below:

```
1111111111
100000000
100000000
1111111111

```

Lets say text file 2 is equal to the below:

```
1111111111
1000011111
1000000000
1111111111

```

And the result could look like this:

```
11111111111111111111
1000000001000011111
1000000001000000000
11111111111111111111

```

Thanks for the help and if anyone would like to check out my full project it is [here](https://github.com/Seaste0809/Platform-Game-Version-1.2/tree/main)