The following is creating a number of errors i.e “B” is not recognized (as well as the other 20 letters and “File” is not recognized.
I can’t see the problem here?
string[] correctAnswers = {B,D,A,A,C,A,B,A,C,D,B,C,D,A,D,C,C,B,D,A};
string[] studentResults = File.ReadAllLines("studentResults.txt");
Thankyou
You should wrap them in double quotes:
Edit :
(Thanks to @goldenparrot) You need to add this namespace :
to be able to use File.ReadAllLines(). either that or :