Extracts strings from file.