added file support
Merge pull request #9 from DuncanCYoung/hw9

added file support