Reading multiple types of files