Get basic file input and output working