Read in file for parsing cardinalities