<div dir="auto">I've always (since Turbo Pascal and now with Free Pascal) used FILESIZE. It works like a charm.<div dir="auto">Even if you do it in assembly its done the same as its done in pascal.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Oct 6, 2017 7:14 PM, "James Richters" <<a href="mailto:james@productionautomation.net">james@productionautomation.net</a>> wrote:<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="EN-US" link="blue" vlink="purple"><div class="m_4877781207536404628WordSection1"><p class="MsoNormal">I am wondering how to get the file size reported by the OS for a particular file without opening it.  I tried to search for ‘Free Pascal File Size’  and variations but all I get are things like this:<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><a href="https://www.freepascal.org/docs-html/rtl/system/filesize.html" target="_blank">https://www.freepascal.org/<wbr>docs-html/rtl/system/filesize.<wbr>html</a> <u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">which is not what I’m looking for.   <u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">I’ve been looking through the sysutils reference here:<u></u><u></u></p><p class="MsoNormal"><a href="https://www.freepascal.org/docs-html/rtl/sysutils/index-5.html" target="_blank">https://www.freepascal.org/<wbr>docs-html/rtl/sysutils/index-<wbr>5.html</a><u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">and I see disk size, but not file size…  <u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Could someone please point me in the right direction?<font color="#888888"><u></u><u></u></font></p><font color="#888888"><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">James<u></u><u></u></p></font></div></div><br>______________________________<wbr>_________________<br>
fpc-pascal maillist  -  <a href="mailto:fpc-pascal@lists.freepascal.org">fpc-pascal@lists.freepascal.<wbr>org</a><br>
<a href="http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal" rel="noreferrer" target="_blank">http://lists.freepascal.org/<wbr>cgi-bin/mailman/listinfo/fpc-<wbr>pascal</a><br></blockquote></div><br></div>