Settings Help
CTAN
Comprehensive TeX Archive Network
Home Upload Browse

close­frm – Tidy up af­ter read­ing a Meta­Post file

De­fines a ‘close­from’ macro to com­ple­ment the ‘read­from’ prim­i­tive. It op­er­ates by re­peat­edly read­ing from a file un­til reach­ing EOF, which has the side-ef­fect of clos­ing the file.
The macro might be use­ful to avoid run­ning out of read files when us­ing the Meta­Post graph pack­age to pro­cess many data files that con­tain ex­tra junk at the end. (In such cir­cum­stances, read­ing the files will stop short of the end, so leav­ing the file open.)

CTAN path/graph­ics/meta­post/con­trib/macros/misc/close­frm.mp
Ver­sion1.04
Li­censeUn­known Sta­tus, No In­for­ma­tion Avail­able
Main­tainerUl­rik Vi­eth
Topics man­age TeX’s lim­ited i/o streams
Guest Book Sitemap Contact 2013-04-08 05:09