Skip to content

Latest commit

 

History

History
33 lines (18 loc) · 1.29 KB

README.md

File metadata and controls

33 lines (18 loc) · 1.29 KB

Reordering-the-text-file

Support My Work

Hey there! 👋

I'm an independent creator working on various projects, from open-source software to content creation. If you find my work useful or enjoy what I do, consider supporting me with a virtual coffee! Your support helps keep me fueled and motivated to continue creating and sharing. It's a small gesture that goes a long way in making a difference.

Thank you for being a part of my journey! ☕

--> Buy Me a Coffee ☕

Data File Rearranger

This simple Python script reads an input text file (data.txt), which contains serialized data, and rearranges it based on a predefined order. The output is saved to a new text file (converted.txt). The expected format of the input file is serial numbers followed by key-value pairs.

How to Use:

  1. Ensure you have a file named data.txt in the same directory as the script.
  2. Run the script.
  3. The rearranged data will be saved in a file named converted.txt.

Customization:

  • Adjust the order list to define the desired order of key-value pairs.
  • The script expects a specific format for input data, so ensure your input file follows the required structure.

Feel free to reach out if you have any questions or suggestions for improvement!