Article View: borland.public.cppbuilder.nativeapi
Article #1626Get File Size in Bytes - Silly Question
From: Robert G. Hoover
Date: Mon, 09 Jul 2007 13:25
Date: Mon, 09 Jul 2007 13:25
12 lines
1328 bytes
1328 bytes
Hi All, I'm sure there's a simple answer to this silly question... my apologies... How can I get the size of a file in bytes given it's absolute filename? I'd rather not open the file and perform a FileSeek to the end to determine the size... I need something quick, no overhead... does such a function exist? Something like GetFileSizeInBytes(Ansistring FileName)? Thanks, Rob
Technical Details
Message-ID:
<46923739@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news1.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,82a41b4848349c2f,start X-Google-Attributes: gid10cc67,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Date: Mon, 09 Jul 2007 09:25:08 -0400 From: "Robert G. Hoover" <not.a.real.address@anywhere.sorry> User-Agent: Thunderbird 1.5.0.12 (Windows/20070509) MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.nativeapi Subject: Get File Size in Bytes - Silly Question X-Enigmail-Version: 0.94.1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Antivirus: avast! (VPS 000754-5, 07/08/2007), Outbound message X-Antivirus-Status: Not-Tested NNTP-Posting-Host: 67.142.36.34 Message-ID: <46923739@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1183987513 67.142.36.34 (9 Jul 2007 06:25:13 -0700) Lines: 12 Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news1.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail