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")
Answer: B
You might also like to view...
What is wrong with the following recursive function? It should print out the array backwards.
void print(int array[], int start, int size) { if(start < size) return; else { print(array, start+1,size); cout << array[start] << endl; } } a. infinite recursion b. the stopping condition is wrong c. the recursive call is wrong d. nothing
Ping of Death and Teardrop are examples of what type of attack?
a. Gaining access b. Bandwidth consumption c. SYN Flood attacks d. Program and application attacks
How does software configuration management differ for Web and Mobile Apps?
What will be an ideal response?
Which of the following is NOT a way to spread a virus?
A. Flash drive B. scanning a picture C. email attachments D. downloading video games