Reads the cbg data structure form a file