You know that in linux it’s easy but I can’t just understand how to do it in C# on Windows. I want to delete all files matching the wildcard f*.txt. How do I go about going that?
You know that in linux it’s easy but I can’t just understand how to
Share
You can use the
DirectoryInfo.EnumerateFilesfunction:(Of course, you’ll probably want to add error handling.)