FIND YOUR NEXT FEW LINES
The snippet library.
Small, practical examples. Search by task or narrow things down below.
5 snippets foundClear filters
Append a line
Append UTF-8 text without replacing existing C# file contents.
C#✓ Tested
Create nested directories
Create a directory tree using the .NET Directory API.
C#✓ Tested
List matching files
Enumerate immediate text files and sort their names in C#.
C#✓ Tested
Read a text file
Load a small text file into a C# string.
C#✓ Tested
Write a text file
Write a C# string to a UTF-8 file.
C#✓ Tested