The Language Integrated Query (LINQ) is a syntax that allows developers to sort, filter, and perform other aggregate operations on collections in C#. This tutorial will introduce you to LINQ and teach you how to use the OrderBy method to sort your data. ... Read more
Bradley Wells
Hi, I write C# and .NET tutorials. Follow me @bradwellsb
Collections in C# are similar to arrays, but with added benefits. Perhaps most importantly, they enable the developer to take advantage of rich sorting, filtering, and aggregation features available in the .NET Core framework through LINQ queries. ... Read more
In this tutorial, you will learn how to use the StreamReader object to read a specific line number of a text file in your C# applications. ... Read more
To read a text file in C#, you will use a StreamReader object. In this tutorial, you will learn how to use StreamReader to read the contents of an existing file. ... Read more
To asynchronously write to a text file in C#, you will use the StreamWriter constructor within an async method. StreamWriter can also be used to write strings to a file synchronously, or to append to an existing file. To use StreamWriter asynchronously, include the following
using
directives in your ... Read moreTo write to a text file in C#, you will use a StreamWriter object. In this tutorial, you will learn how to use StreamWriter to write a string to a file synchronously. You can also use StreamWriter to append text to an existing file and to write to a ... Read more