Add the ability to read in file contents

It is now possible to read in the contents of a file when iterating
through the directory