Create xfreopen() utility instead of duplicating code
Create xfreopen() utility instead of duplicating code

mcshane/samtools,mcshane/samtools,mcshane/samtools,mcshane/samtools,mcshane/samtools,mcshane/samtools