Barry,
There are tools out there like StoneField that help out with this sort of task. You might also check the files section here.
>yeah, i'm of the same opinion. having to fopen and parse the header for the structure now. shame but i suppose only need to write this once.