Completed the read part of the pattern file system