# CSJ2K.j2k.io.RandomAccessIO.seek

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="CSJ2K_j2k_io_RandomAccessIO_seek_" data-uid="CSJ2K.j2k.io.RandomAccessIO.seek*">seek Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="CSJ2K_j2k_io_RandomAccessIO_seek_" data-uid="CSJ2K.j2k.io.RandomAccessIO.seek*"></a>
<h4 id="CSJ2K_j2k_io_RandomAccessIO_seek_System_Int32_" data-uid="CSJ2K.j2k.io.RandomAccessIO.seek(System.Int32)">seek(int)</h4>
<div class="markdown level1 summary"><p>Moves the current position for the next read or write operation to
offset. The offset is measured from the beginning of the stream. The
offset may be set beyond the end of the file, if in write mode. Setting
the offset beyond the end of the file does not change the file
length. The file length will change only by writing after the offset
has been set beyond the end of the file.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">void seek(int off)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Sub seek(off As Integer)</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="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">off</span></td>
      <td><p>The offset where to move to.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
