From ef5855c1882a07e5d396d56f04f9f694ea117624 Mon Sep 17 00:00:00 2001 From: Markus Rodler Date: Sun, 5 May 2024 12:00:09 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=84=20Provide=20usage=20examples=20in?= =?UTF-8?q?=20README?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index a61c159..2f9a0d0 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,14 @@ # Dark.IO (Library) ![Library](https://github.com/MarkusRodler/Dark.IO/workflows/.NET/badge.svg) + +## How to use + +### Async Delete +```csharp + public static Task Delete(string path) +``` + +### Async WriteAllText (Creates all missing directories) +```csharp + public static Task File.WriteAllText(string path, string? contents, CancellationToken cancellationToken = default) +```