title: How can I get a file's size in C++?
body: <p>Let's create a complementary question to <a href="https://stackoverflow.com/questions/238603/how-can-i-get-a-files-size-in-c">this one</a>.
  What is the most common way to get the file size in C++?
  Before answering, make sure it is portable (may be executed on Unix, Mac and Windows),
  reliable, easy to understand and without library dependencies (no boost or qt, but for instance glib is ok since it is portable library).</p>