This causes segmentation faults in the code if given invalid inputs. For example a file does not exist on the filesystem.