An email with a link to:
was emailed to:
Thanks for sharing About.com with others!
A Brief History Of The Easter Egg and The Easter BunnyThe 30 Best Torrent Download Sites of 2014Access the Advanced Startup Options in Windows 8 or 8.1How to Delete Everything on a Hard DriveAre You Getting a Msvcr80.dll Eror? Heres What to Do
By Zarko GajicNovember 10, 2008
Follow me on:
Read the full article to learn how to File Size - Get the Size of a File in Bytes using Delphi
two comments on this function:
1) Filesize already exists in the System library
2) FindClose(sr) does not compile at least in Delphi 2007 as it expects a handle
two comments on the Filesize function:
1) The function “Filesize” exists already in the “system” library
2) Findclose(sr) does not compile at least in Delphi 2007, as it expects a handle instead of a Tsearchrec
OK, I got it:
does the trick.
system.FileSize does not work well with files > 2GB.
f : File of byte;
fs : cardinal;
fs := system.FileSize(f);
the above code would return minus value for a 2+ gb file.
Zarko, I just wanted to point out that a function with the same name already exists, so “GetFilesize” would be better and furthermore there are several Findclose functions defined in system and sysutils with different parameters. Choosing the correct namespace will call the correct one.
Sorry about my english, but…let try ask you a important question for me…
I’m trying to get the Mozilla firefox 3.0 adress bar by it’s class name… I’m going to be crazy!! ’cause I tryed everything..
In I.E (everything gone be all rigth!!!).
I use the program “Windowse” for this purposes.
I realy need a “BRAIN” to help me a solve this big problem.
I’m from Brazil and here, programmers watches your blog and
really loves it…(’cause there are important articles)
ok, sorry about my poor english and…PLEASE:
Someone heeeelppp-mee with this code!!!
Thanks for all…
<a href="" title="">
©2014 About.com. All rights reserved.