🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #1628

Re: Get File Size in Bytes - Silly Question

#1628
From: Pete Fraser
Date: Mon, 09 Jul 2007 14:23
18 lines
1549 bytes
Some ideas here:
http://www.codeproject.com/file/filesize.asp
HTH Pete

"Robert G. Hoover" <not.a.real.address@anywhere.sorry> wrote 
in message news:46923739@newsgroups.borland.com...
> 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)?
Technical Details
Message-ID: <469244d7@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <46923739@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,82a41b4848349c2f
X-Google-Attributes: gid10cc67,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Pete Fraser" <pete.nospam.fraser.nospam@frasersoft.nospam.net>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <46923739@newsgroups.borland.com>
Subject: Re: Get File Size in Bytes - Silly Question
Date: Mon, 9 Jul 2007 15:23:19 +0100
Lines: 20
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3028
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 80.175.251.18
Message-ID: <469244d7@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1183990999 80.175.251.18 (9 Jul 2007 07:23:19 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail