# C1.DataEngine.DataList.Write

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_DataEngine_DataList_Write_" data-uid="C1.DataEngine.DataList.Write*">Write Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_DataEngine_DataList_Write_" data-uid="C1.DataEngine.DataList.Write*"></a>
<h4 id="C1_DataEngine_DataList_Write_C1_DataEngine_IDataList_System_IO_TextWriter_C1_DataEngine_OutputFormat_" data-uid="C1.DataEngine.DataList.Write(C1.DataEngine.IDataList,System.IO.TextWriter,C1.DataEngine.OutputFormat)">Write(IDataList, TextWriter, OutputFormat)</h4>
<div class="markdown level1 summary"><p>Outputs a list to a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.io.textwriter">TextWriter</a> instance in one of the supported formats.</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 Write(IDataList list, TextWriter writer, OutputFormat format = OutputFormat.Csv)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Sub Write(list As IDataList, writer As TextWriter, Optional format As OutputFormat = OutputFormat.Csv)</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="../C1.DataEngine/C1.DataEngine.IDataList.html">IDataList</a></td>
      <td><span class="parametername">list</span></td>
      <td><p>A list of items that implements the <a class="xref" href="../C1.DataEngine/C1.DataEngine.IDataList.html">IDataList</a> interface.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.io.textwriter">TextWriter</a></td>
      <td><span class="parametername">writer</span></td>
      <td><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.io.textwriter">TextWriter</a> to which output will be written.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.DataEngine.OutputFormat.html">OutputFormat</a></td>
      <td><span class="parametername">format</span></td>
      <td><p>One of the supported <a class="xref" href="C1.DataEngine.OutputFormat.html">OutputFormat</a> values. If not specified, defaults to Csv.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
