Complete getCode, but notfile out and file in