# C1.Util.DX.Storage.NativeFile

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Util_DX_Storage_NativeFile" data-uid="C1.Util.DX.Storage.NativeFile" class="text-break">NativeFile Class
</h1>
  <div class="markdown level0 summary"><p>Windows File Helper.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><span class="xref">NativeFile</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Util.DX.Storage.html">C1.Util.DX.Storage</a></h6>
  <h6><strong>Assembly</strong>: C1.Win.DX.10.dll</h6>
  <h5 id="C1_Util_DX_Storage_NativeFile_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static class NativeFile</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Module NativeFile</code></pre>
  </div>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Util_DX_Storage_NativeFile_Exists_System_String_" data-uid="C1.Util.DX.Storage.NativeFile.Exists(System.String)">
          <a class="xref" href="C1.Util.DX.Storage.NativeFile.Exists.html#C1_Util_DX_Storage_NativeFile_Exists_System_String_">Exists(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Checks if the specified file path exists.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Storage_NativeFile_GetLastWriteTime_System_String_" data-uid="C1.Util.DX.Storage.NativeFile.GetLastWriteTime(System.String)">
          <a class="xref" href="C1.Util.DX.Storage.NativeFile.GetLastWriteTime.html#C1_Util_DX_Storage_NativeFile_GetLastWriteTime_System_String_">GetLastWriteTime(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the last write time access for the specified path.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Storage_NativeFile_ReadAllBytes_System_String_" data-uid="C1.Util.DX.Storage.NativeFile.ReadAllBytes(System.String)">
          <a class="xref" href="C1.Util.DX.Storage.NativeFile.ReadAllBytes.html#C1_Util_DX_Storage_NativeFile_ReadAllBytes_System_String_">ReadAllBytes(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Opens a binary file, reads the contents of the file into a byte array, and then closes the file.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Storage_NativeFile_ReadAllText_System_String_" data-uid="C1.Util.DX.Storage.NativeFile.ReadAllText(System.String)">
          <a class="xref" href="C1.Util.DX.Storage.NativeFile.ReadAllText.html#C1_Util_DX_Storage_NativeFile_ReadAllText_System_String_">ReadAllText(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Opens a text file, reads all lines of the file, and then closes the file.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Storage_NativeFile_ReadAllText_System_String_System_Text_Encoding_C1_Util_DX_Storage_NativeFileShare_" data-uid="C1.Util.DX.Storage.NativeFile.ReadAllText(System.String,System.Text.Encoding,C1.Util.DX.Storage.NativeFileShare)">
          <a class="xref" href="C1.Util.DX.Storage.NativeFile.ReadAllText.html#C1_Util_DX_Storage_NativeFile_ReadAllText_System_String_System_Text_Encoding_C1_Util_DX_Storage_NativeFileShare_">ReadAllText(string, Encoding, NativeFileShare)</a>
        </td>
        <td class="markdown level1 summary"><p>Opens a text file, reads all lines of the file, and then closes the file.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
