31. Which class in C# is used to represent a stream of characters to be written to a file?
32. What is the purpose of the Directory.GetFiles() method in C#?
33. In C#, what is the method used to append lines to a file?
34. What does the File.ReadAllBytes() method do in C#?
35. In C#, which class is used to manipulate paths in a platform-independent manner?
36. In C#, which method is used to read all lines from a file and return them as an array of strings?
37. What happens if you attempt to read from a file that is already open by another process in C#?
38. What is the purpose of the File.Open() method in C#?
39. What is the purpose of the File.GetLastWriteTime() method in C#?
40. In C#, which method is used to delete a directory, and optionally any subdirectories and files in the directory?
Read More Section(File Handling and Input Output in C Sharp)
Each Section contains maximum 100 MCQs question on File Handling and Input Output in C Sharp. To get more questions visit other sections.