Split file IO functionality into separate FileIO utility class to reduce duplication and maintain a common workflow when operating with external files.