6 ms·
What about System.IO.File.ReadAllText(path); ? That said, even if the language required more than one line to read a file, that wouldn't be a good example of a
by m0th87 16y ago
What about System.IO.File.ReadAllText(path); ?
That said, even if the language required more than one line to read a file, that wouldn't be a good example of a language being verbose. That would be an example of a missing shortcut in the standard library, which is an important distinction (the latter is much easier to fix than the former.)