Improved the method by which file contents are retrieved