StreamReader inFile = new StreamReader("name.txt") ; while ((inValue = inFile.ReadLine() ) != null)
What does the above statement do?
A) Retrieves one line of text from an input file.
B) Retrieves a single character from an input file.
C) Checks to see if the file is null.
D) Reads every line from an input file.
Correct Answer:
Verified
Q34: The StreamReader class is used to create
Q35: When you close a file, no arguments
Q36: No exception is thrown if you attempt
Q37: StreamReader inFile = new StreamReader("name.txt");
While ((inValue =
Q38: The File, FileInfo, Directory, and DirectoryInfo classes
Q40: When you place an @ in front
Q41: Which method, used with the StreamWriter class,
Q42: Which method is used to cause the
Q43: The StreamReader class extends the _ class.
A)
Q44: StreamReader inFile = new StreamReader("name.txt");
While ((inValue =
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents