Which class in C# is used to read data from text files?
Select an option to see the answer and solution.
What is the purpose of the using statement when working with files in C#?
Select an option to see the answer and solution.
In C#, which method is used to write data to a text file?
Select an option to see the answer and solution.
What is the correct way to open a file for writing in C#?
Select an option to see the answer and solution.
In C#, which class is used to manipulate directories and files?
Select an option to see the answer and solution.
What is the purpose of the File.Exists() method in C#?
Select an option to see the answer and solution.
In C#, which method is used to read the entire contents of a file into a string?
Select an option to see the answer and solution.
What is the purpose of the File.ReadAllLines() method in C#?
Select an option to see the answer and solution.
In C#, which method is used to delete a file?
Select an option to see the answer and solution.
Which class in C# provides methods for synchronous reading and writing operations on files?
Select an option to see the answer and solution.
What is the purpose of the File.Copy() method in C#?
Select an option to see the answer and solution.
In C#, which method is used to determine the size of a file in bytes?
Select an option to see the answer and solution.
What is the correct way to close a file after reading or writing in C#?
Select an option to see the answer and solution.
In C#, which method is used to create a new directory?
Select an option to see the answer and solution.
What is the purpose of the File.Move() method in C#?
Select an option to see the answer and solution.
In C#, which class provides methods for creating, copying, deleting, and moving directories and subdirectories?
Select an option to see the answer and solution.
What does the File.AppendText() method do in C#?
Select an option to see the answer and solution.
Which method is used to read a single character from a text file in C#?
Select an option to see the answer and solution.
What is the purpose of the File.ReadAllBytes() method in C#?
Select an option to see the answer and solution.
Which of the following methods is used to determine whether the specified file exists in C#?
Select an option to see the answer and solution.