<?xml version="1.0" encoding='utf-8'?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card id="card1" title="Block (data storage) - Page 7 - Wikipedia">
<p>
<a accesskey="1" href="page.php?w=block_(data_storage)&amp;p=6">1.Previous</a><br />
<a accesskey="3" href="page.php?w=block_%28data_storage%29&amp;p=8">3.Next</a>
</p>
<p>DBMS on top of a file system.</p>

<p>On Linux the default block size for most file systems is 4096 bytes. The  command part of <a href="page.php?w=GNU_Core_Utilities">GNU Core Utilities</a> can be used to check the block size.</p>

<p><big>In languages</big></p>
<p><big>C++</big></p>
<p>In <a href="page.php?w=C%2B%2B">C++</a>, a block can be read using <code>std::ifstream</code> (input file stream).<syntaxhighlight lang="cpp">import std;</syntaxhighlight></p>

<p>using std::array;using std::byte;using std::ifstream;using std::ios;</p>

<p>constexpr size_t BLOCK_SIZE</p><p>
<a accesskey="1" href="page.php?w=block_(data_storage)&amp;p=6">1.Previous</a><br />
<a accesskey="3" href="page.php?w=block_%28data_storage%29&amp;p=8">3.Next</a>
</p>

<do type="prev" label="Search">
        <go href="search.wml"/>
</do>

</card>
</wml>
