for later use? Assume that myFile has already been declared and opened as a Stre
ID: 3708435 • Letter: F
Question
for later use? Assume that myFile has already been declared and opened as a StreamReader and array input and variable x have been properly declared if used 33. Which of the following loops will read the entire contents of a file and store it into memory b. while (myFile.EndorStream) a while (EndOfStream) inputfx] myFile.ReadLine ): x t1; input myFile e. while (myFile.EndOfStream) d. while (myFile.EndOiStream) myFile.ReadLine( ) inputfx]- myFile.ReadL.ine ) rly open a file to read from? Given: System.IO.StreamReader myFile; a. The line of code given above is all that is needed b. myFile.OpenFilee:filename.txt e Open "e:llfilename.txt"-myFile d. myFilem System. 10. File.OpenText("?:Wfilename.txt") e. myFileOpen"c:ltfilename.txt") 1in Matlab, which statement below will not display any value, that is, it will suppress mEu? Asme that A and B are single 1x1 values)Explanation / Answer
33. d )
while loop will be executed till the last line of file and each line is stores in array input using index variable x
34. d)
System.IO.StreamReader myfile; // myFile is only be declared but not assigned a value
myfile = System.IO.File.OpenText("C:\fileName.txt"); // Opens a text file to be read
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.