adding methods to get data from file and content from file