Created
December 2, 2019 20:15
-
-
Save jonpryor/80e266e02add71244b47a70da5c00fc8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.IO; | |
class App { | |
public static void Main (string[] args) | |
{ | |
foreach (var file in args) { | |
var content = File.ReadAllText (file); | |
var lines = content.Split ('\n'); | |
foreach (var line in lines) { | |
Console.WriteLine ($"'{line}' {line.Length}"); | |
} | |
} | |
} | |
} |
Author
jonpryor
commented
Dec 2, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment