warn -> warnx
rename nextbyte() to something more useful
don't assume < 255 files!