Link to home
Start Free TrialLog in
Avatar of dfernan
dfernanFlag for United States of America

asked on

format of a file python

Hi,

Script to convert file1.txt to file2.txt.

I have a file with the format as in file 1.txt and want to write an automated script to always convert that type of file to a file as in type file2.txt.

Please write a smart python script to do that in a efficient way :-)  Any help will be strongly appreciated.

Thanks you very much!

Please note that I also changed the ordered of the output IDs.  The 1aho ID goes to the end of the file and its called sequence instead of structure.  There will always be one ID that will go to the end.  the name of that ID is known, in this case it was 1aho.
file1.txt
file2.txt
ASKER CERTIFIED SOLUTION
Avatar of gelonida
gelonida
Flag of France image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of dfernan

ASKER

Thanks you very much!  exactly what I was looking for.