Which of the following opens the employee.txt file for output,creates a StreamWriter object,and assigns it to the outFile variable?
A) outFile = File.CreateText("F:\employee.txt")
B) outFile = IO.File.CreateText("F:\employee.txt")
C) outFile = File.CreateText("F:\")
D) outFile = IO.File.Create("F:\employee.txt")
Correct Answer:
Verified
Q23: In Visual Basic,you use a(n)_ to read
Q24: After opening a file for input,you can
Q25: In the syntax for the PadLeft method,_
Q26: Which of the following statements will close
Q27: Which of the following can be used
Q29: Which of the following determines whether an
Q30: Which of the following statements will write
Q31: Which of the following statements will read
Q32: A(n)_ is defined as a sequence (stream)of
Q33: The _ method writes a newline character
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