Microsoft interview question

What functions would you use in python to scrape data from a file