<div class="blazorise-codeblock">
<div class="csharp"><pre>
<span class="keyword">public</span> Task&lt;<span class="keyword">string</span>&gt; GetDocumentContent()
{
    <span class="keyword">var</span> content = File.ReadAllTextAsync(<span class="stringCSharpVerbatim"><span class="atSign">&#64;</span>&quot;Document.txt&quot;</span>)
        .ContinueWith(t =&gt;
        {
	    <span class="keyword">if</span> (t.IsFaulted)
            {
                Console.WriteLine(t.Exception);
            }
					
  