Parses a file and outputs information based on shapes