Ok, where were you using fscanf? If you need to load data to features and labels, use CSVFile or similar.