21. In C#, which class provides information about a specific file?
22. In C#, which method is used to open an existing text file for reading?
23. What is the purpose of the File.SetAttributes() method in C#?
24. Which class in C# is used to perform synchronous and asynchronous read and write operations to a file in a managed application?
25. In C#, which method is used to write a string to a text file?
26. In C#, what happens if you attempt to read from a file that does not exist using File.OpenRead() method?
27. What is the purpose of the File.Create() method in C#?
28. In C#, which class represents a writer that provides a fast, non-cached, forward-only way of generating sequences of characters from streams of bytes?
29. What is the purpose of the File.WriteAllText() method in C#?
30. In C#, what method is used to create a new file if it does not exist, or overwrite the existing file if it does exist?
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.