Home World Forum
Stars! AutoHost web forums

Jump to Stars! AutoHost


 
 
Home » Stars! 2.6/7 » The Academy » M-File splitter, thanks to m.a@stars harassment :-)
M-File splitter, thanks to m.a@stars harassment :-) Thu, 06 April 2006 15:30 Go to previous message
wumpus

 
Master Chief Petty Officer
Stars! V.I.P
Created tools and utilities to help the Stars! community
Past Weekly Puzzle Master

Messages: 114
Registered: September 2004
Well, m.a@stars has been hassling me about making an M-file splitter for a while now, so here, finally it is, complete with source code Smile

http://sourceforge.net/project/showfiles.php?group_id=65726& amp;package_id=186619

Given an M-file which contains multiple years worth of data, mSplit will output one M file per year.

The naming of the output files is not exactly optimal yet, since you have to rename them in order to open them in stars!, but since stars! insists on a very specific name so that it can find the corresponding XY file, a simple solution didn't seem available. I didn't feel that making a lot of subdirectories and putting one year's worth of M file into each subdirectory was an acceptable solution.

Comments welcome ofc Smile

(Just run the program at a command prompt / dos window / whatever those things are called these days - the usage message should be clear enough I hope Smile
It's purely a console app at this stage, if someone feels like putting a nice GUI front end on it, feel free!)

[EDIT 17.4.2006: Corrected link - now points to list of releases on SF, rather than this specific version - so that a later update will not require changing this thread Smile. The link above looks broken with the 'amp' in the middle, but does work... SAH Forum software not doing what I want Neutral]


[Updated on: Mon, 17 April 2006 13:59]




Michael "Wumpus" Zinn
» Apply magic glue here «

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Nubians with BET?
Next Topic: 'magic' entry for stars! files (aka 'starsfile' for unix :-))
Goto Forum:
  


Current Time: Sun Jun 16 00:12:26 EDT 2024