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
Q21: The _ class has implementations for Write(
Q23: Instead of hard coding the actual filename
Q24: StreamWriter outputFile = new StreamWriter("someOutputFileName");
StreamReader inputFile =
Q26: If an invalid path is included with
Q29: The abstract classes of Stream, TextWriter, and
Q29: StreamReader inFile = new StreamReader("name.txt");
while ((inValue =
Q31: None of the of the method named in
Q31: StreamWriter outputFile = new StreamWriter("someOutputFileName");
StreamReader inputFile =
Q36: No exception is thrown if you attempt
Q38: The File, FileInfo, Directory, and DirectoryInfo classes
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