C Sharp (C#) - File IO
What is the issue with the following C# code that attempts to read all lines from "log.txt"?
var lines = File.ReadAllLines("log.txt";var lines = File.ReadAllLines("log.txt";File.ReadAllLines("log.txt"; is missing a closing parenthesis.var is valid here because the method returns a string array.File.ReadAllLines supports reading text files including .txt files.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions