Check return for fscanf
Try/catch when getting channels