C Sharp (C#) - File IO
Identify the error in this C# code snippet for writing to a file:
StreamWriter sw = new StreamWriter("data.txt");
sw.WriteLine("Data");StreamWriter sw = new StreamWriter("data.txt");
sw.WriteLine("Data");15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions