Test Your Knowledge

ConsoleApp_Lesson4 Quiz

Answer all questions to test your understanding

1 Which namespace contains file handling classes in C#?
2 Which method writes text to a file and overwrites if the file already exists?
3 What is the purpose of the 'using' statement with StreamReader/StreamWriter?
4 How do you check if a file exists in C#?
5 Which method reads all lines from a file into a string array?