Control structures and file i/o