can now open and close file listed in first arg