clear the tmp outbuffer when reading files