Parse text contents from common file formats