23.10.2009, 02:25
Writing a PERL script doing this sorting in general isn't really that much of a problem. What usually takes most of the time is all that overhead you need for file selection, etc. I'm just writing some scripting along those lines, and the most time-consuming part is the graphics window. Writing a command line tool doesn't really take so long - well, depending on the exact task that has to be done, I should add.
The devil sticks in the details, though. I just wrote a routine sorting an entry line into the air.ini, without changing its general structure. But what you normally do in a minute just with a text editor isn't that easy with a script. Even if the aircraft list was originally sorted in an alphabetical order the program would sort a new entry into the file not always as you'd expect, eg. 'xyz9' comes AFTER 'xyz13' if you use a normal sorting function. And if the file is in alphabetical order, but separated into an 'allies' and an 'axis' part it takes even more program code to get a more or less satisfying result.
UltraEdit is nice, I agree, but the 'TextPad' is also a great tool - and freeware:
http://www.textpad.com/
The best text editor, though, I have ever seen - and use for years un UNIX systems - is the 'nedit', but to install it on a windows system is not easy - or at least was when last time I tried it:
http://www.nedit.org/
Best greetings and wishes,
chanklaus
The devil sticks in the details, though. I just wrote a routine sorting an entry line into the air.ini, without changing its general structure. But what you normally do in a minute just with a text editor isn't that easy with a script. Even if the aircraft list was originally sorted in an alphabetical order the program would sort a new entry into the file not always as you'd expect, eg. 'xyz9' comes AFTER 'xyz13' if you use a normal sorting function. And if the file is in alphabetical order, but separated into an 'allies' and an 'axis' part it takes even more program code to get a more or less satisfying result.
UltraEdit is nice, I agree, but the 'TextPad' is also a great tool - and freeware:
http://www.textpad.com/
The best text editor, though, I have ever seen - and use for years un UNIX systems - is the 'nedit', but to install it on a windows system is not easy - or at least was when last time I tried it:
http://www.nedit.org/
Best greetings and wishes,
chanklaus