int secondComma = line.indexOf(',', firstComma + 1);
float rating = Float.parseFloat(line.substring(firstComma + 1, secondComma));
prefs.add(new GenericPreference(userID, itemID, rating));
}
} catch (IOException ioe) {
throw new TasteException(ioe);
}
return new GenericItemPreferenceArray(prefs);
}