1. Project Brief
Your task for this project is to merge text files using Python.
2. Project Instructions
Download and extract these text files and place them in a folder.
Write a program that:
Reads the content of each text file
Merges the content/string of each file making sure the content of a.txt comes first, then b.txt, then c.txt.
Writes the merged string into one single text file.
3. Project Expected Output
The expected output is a generated merged_file.txt file that contains the content of all three input files.
4. Environment Setup Instructions (in your local IDE)
👉 Skip to the next step if you prefer to code this project in an online browser-based IDE or from your mobile phone.
You don’t need to install any libraries for this project.
pip install requests
To run the code, execute the main.py file with:
python main.py
5. Environment Setup Instructions (in an online IDE as alternative)
Prefer an online IDE? Use this cloud IDE link to start coding immediately with a pre-configured environment. The environment has the input files already uploaded.
6. Resources
Tutorial about reading text files:
https://pythonhow.com/how/read-a-text-file-with-python/
Tutorial about creating text files and writing content in them:
https://pythonhow.com/how/create-a-text-file-with-and-write-text-on-it/
The folder name is "inputs" according the code specified.