Article View: borland.public.csharpbuilder.language.csharp
Article #36Re: Getting the size of a file
From: Ray
Date: Mon, 15 May 2006 17:13
Date: Mon, 15 May 2006 17:13
20 lines
1251 bytes
1251 bytes
Found the answer: FileInfo info = new FileInfo(tempfile); int size = info.Length; "Ray" <noreply@daemon.com> wrote in message news:4468b2b0@newsgroups.borland.com... > Hi > > How do I get the size of a file. > > Something like > > string filename="C:\Myfile.txt"; > > int size=FileSize(filename); > > Ray >
Technical Details
Message-ID:
<4468b65c@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news4.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-mailReferences:
<4468b2b0@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 1efe35,7471e8a8f2f64364 X-Google-Attributes: gid1efe35,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Ray" <noreply@daemon.com> Newsgroups: borland.public.csharpbuilder.language.csharp References: <4468b2b0@newsgroups.borland.com> Subject: Re: Getting the size of a file Date: Mon, 15 May 2006 18:13:24 +0100 Lines: 22 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2869 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 X-RFC2646: Format=Flowed; Response NNTP-Posting-Host: 62.56.18.49 Message-ID: <4468b65c@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1147713116 62.56.18.49 (15 May 2006 10:11:56 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news4.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