A simple Python script that converts text files to CSV format.
The script automatically:
- Reads all
.txt
files from theinput
directory - Converts each file to CSV format
- Saves the converted files in the
output
directory with timestamps
- Place your
.txt
files in theinput
directory - Run the script:
python script.py
- Find your converted files in the
output
directory
Each output file will be named in the format: original-name_YYYYMMDD_HHMMSS.csv
- Python
- pandas