Thread View: borland.public.csharpbuilder.language.csharp
2 messages
2 total messages
Started by Ray
Mon, 15 May 2006 16:54
Getting the size of a file
Author: Ray
Date: Mon, 15 May 2006 16:54
Date: Mon, 15 May 2006 16:54
11 lines
1008 bytes
1008 bytes
Hi How do I get the size of a file. Something like string filename="C:\Myfile.txt"; int size=FileSize(filename); Ray
Re: Getting the size of a file
Author: 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 >
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads