get PRINTNUM and file output I/O working