C# Line Reader

Posted by Joe Enos on December 31, 2020 · 1 min read

Sometimes I'll get a text file to parse, where it's too big or too complex for a spreadsheet, and not worth the trouble of importing to a database. Here's a quick way to parse the file line-by-line with C#

Here's the same thing in NodeJS - personally I think the C# way is a little easier, especially since .NET Core and the dotnet CLI came out.

View code on GitHub