inline 'write', only used once
one less file read for parser; be sure to close it