study file input and output