# FarPoint.Win.Spread.Model.SpreadSerializer.LoadTextFile

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="FarPoint_Win_Spread_Model_SpreadSerializer_LoadTextFile_" data-uid="FarPoint.Win.Spread.Model.SpreadSerializer.LoadTextFile*">LoadTextFile Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="FarPoint_Win_Spread_Model_SpreadSerializer_LoadTextFile_" data-uid="FarPoint.Win.Spread.Model.SpreadSerializer.LoadTextFile*"></a>
<h4 id="FarPoint_Win_Spread_Model_SpreadSerializer_LoadTextFile_FarPoint_Win_Spread_SheetView_System_String_FarPoint_Win_Spread_Model_IncludeHeaders_System_String_System_String_System_String_FarPoint_Win_Spread_TextFileFlags_" data-uid="FarPoint.Win.Spread.Model.SpreadSerializer.LoadTextFile(FarPoint.Win.Spread.SheetView,System.String,FarPoint.Win.Spread.Model.IncludeHeaders,System.String,System.String,System.String,FarPoint.Win.Spread.TextFileFlags)">LoadTextFile(SheetView, string, IncludeHeaders, string, string, string, TextFileFlags)</h4>
<div class="markdown level1 summary"><p>Loads the text file with the specified formatting.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static void LoadTextFile(SheetView sheetView, string fileName, IncludeHeaders includeHeaders, string rowDelimiter, string columnDelimiter, string cellDelimiter, TextFileFlags flags)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Sub LoadTextFile(sheetView As SheetView, fileName As String, includeHeaders As IncludeHeaders, rowDelimiter As String, columnDelimiter As String, cellDelimiter As String, flags As TextFileFlags)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="FarPoint.Win.Spread.SheetView.html">SheetView</a></td>
      <td><span class="parametername">sheetView</span></td>
      <td><p>Sheet into which to load the text data</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">fileName</span></td>
      <td><p>Path and name of file from which to load text</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Win.Spread.Model.IncludeHeaders.html">IncludeHeaders</a></td>
      <td><span class="parametername">includeHeaders</span></td>
      <td><p>Whether headers are handled as data</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">rowDelimiter</span></td>
      <td><p>Row delimiter string</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">columnDelimiter</span></td>
      <td><p>Column delimiter string</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">cellDelimiter</span></td>
      <td><p>Cell delimiter string</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Win.Spread.TextFileFlags.html">TextFileFlags</a></td>
      <td><span class="parametername">flags</span></td>
      <td><p>Specifies how to process the data when loading from a text file</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Win_Spread_Model_SpreadSerializer_LoadTextFile_" data-uid="FarPoint.Win.Spread.Model.SpreadSerializer.LoadTextFile*"></a>
<h4 id="FarPoint_Win_Spread_Model_SpreadSerializer_LoadTextFile_FarPoint_Win_Spread_SheetView_System_IO_Stream_FarPoint_Win_Spread_Model_IncludeHeaders_System_String_System_String_System_String_System_Text_Encoding_FarPoint_Win_Spread_TextFileFlags_" data-uid="FarPoint.Win.Spread.Model.SpreadSerializer.LoadTextFile(FarPoint.Win.Spread.SheetView,System.IO.Stream,FarPoint.Win.Spread.Model.IncludeHeaders,System.String,System.String,System.String,System.Text.Encoding,FarPoint.Win.Spread.TextFileFlags)">LoadTextFile(SheetView, Stream, IncludeHeaders, string, string, string, Encoding, TextFileFlags)</h4>
<div class="markdown level1 summary"><p>Loads the text from a stream with the specified formatting.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static void LoadTextFile(SheetView sheetView, Stream stream, IncludeHeaders includeHeaders, string rowDelimiter, string columnDelimiter, string cellDelimiter, Encoding encoding, TextFileFlags flags)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Sub LoadTextFile(sheetView As SheetView, stream As Stream, includeHeaders As IncludeHeaders, rowDelimiter As String, columnDelimiter As String, cellDelimiter As String, encoding As Encoding, flags As TextFileFlags)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="FarPoint.Win.Spread.SheetView.html">SheetView</a></td>
      <td><span class="parametername">sheetView</span></td>
      <td><p>Sheet into which to load the text data</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.io.stream">Stream</a></td>
      <td><span class="parametername">stream</span></td>
      <td><p>Stream from which to load text</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Win.Spread.Model.IncludeHeaders.html">IncludeHeaders</a></td>
      <td><span class="parametername">includeHeaders</span></td>
      <td><p>Whether headers are handled as data</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">rowDelimiter</span></td>
      <td><p>Row delimiter string</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">columnDelimiter</span></td>
      <td><p>Column delimiter string</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">cellDelimiter</span></td>
      <td><p>Cell delimiter string</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.text.encoding">Encoding</a></td>
      <td><span class="parametername">encoding</span></td>
      <td><p>Encoding of the file</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Win.Spread.TextFileFlags.html">TextFileFlags</a></td>
      <td><span class="parametername">flags</span></td>
      <td><p>Specifies how to process the data when loading from a text file</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Win_Spread_Model_SpreadSerializer_LoadTextFile_" data-uid="FarPoint.Win.Spread.Model.SpreadSerializer.LoadTextFile*"></a>
<h4 id="FarPoint_Win_Spread_Model_SpreadSerializer_LoadTextFile_FarPoint_Win_Spread_SheetView_FarPoint_Win_Spread_Model_IncludeHeaders_System_String_System_String_System_String_System_String_FarPoint_Win_Spread_TextFileFlags_" data-uid="FarPoint.Win.Spread.Model.SpreadSerializer.LoadTextFile(FarPoint.Win.Spread.SheetView,FarPoint.Win.Spread.Model.IncludeHeaders,System.String,System.String,System.String,System.String,FarPoint.Win.Spread.TextFileFlags)">LoadTextFile(SheetView, IncludeHeaders, string, string, string, string, TextFileFlags)</h4>
<div class="markdown level1 summary"><p>Loads the text (string) data with the specified formatting.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static void LoadTextFile(SheetView sheetView, IncludeHeaders includeHeaders, string rowDelimiter, string columnDelimiter, string cellDelimiter, string data, TextFileFlags flags)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Sub LoadTextFile(sheetView As SheetView, includeHeaders As IncludeHeaders, rowDelimiter As String, columnDelimiter As String, cellDelimiter As String, data As String, flags As TextFileFlags)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="FarPoint.Win.Spread.SheetView.html">SheetView</a></td>
      <td><span class="parametername">sheetView</span></td>
      <td><p>Sheet into which to load the text data</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Win.Spread.Model.IncludeHeaders.html">IncludeHeaders</a></td>
      <td><span class="parametername">includeHeaders</span></td>
      <td><p>Whether headers are handled as data</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">rowDelimiter</span></td>
      <td><p>Row delimiter string</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">columnDelimiter</span></td>
      <td><p>Column delimiter string</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">cellDelimiter</span></td>
      <td><p>Cell delimiter string</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">data</span></td>
      <td><p>String that contains data to load</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Win.Spread.TextFileFlags.html">TextFileFlags</a></td>
      <td><span class="parametername">flags</span></td>
      <td><p>Specifies how to process the data when loading from a text file</p>
</td>
    </tr>
  </tbody>
</table>
</div>
