Are linefeeds properly reflected here as compared to the actual file?
That is, are the "! Gamma !" strings embedded in a line as shown?
If so, it's a mishmash of stuff...looks like repetitive calls to
*textscan* to read each section. Wrap those into to calls to build a
routine for the whole file. The first four are easy enough with
'headerlines' and/or the 'commentstyle' parameters. Unfortunately, TMW
didn't allow for multiple single-line comment characters so you have to
choose one and the bracketed comment style using "!" won't work because
it's not consistent in the file.
Or, there's always regexp() ...
--