added method for reading and writing files
Merge pull request #4 from anelanna/master

added method for reading and writing files