This routine has already been incorporated into a simple program that can be called externally, so there are two ways now that you can use this code:
formatNMRSTAR < inputfile > outputfile.This program uses the file /bmrb/lib/comment.str as a configuration file that describes the comments to be added. This file can be changed to add more comments later. If an argument is passed to formatNMRSTAR, it is the filename to be used instead as the comment file,
for example: formatNMRSTAR comment.str < inputfile > outputfile.Included in the examples directory are two such files: "comment.str" and "nullcomment.str". "comment.str" is the file to be used for NMR-STAR files.
formatNMRSTAR( StarFileNode to be formatted, StarFileNode holding the comment.str file );