3

I am working on a Windows MFC application. I am preparing a report list in my design using CListCtrl were I can list the name, size, type and modified date of the file. I do not know how to display the size of a file. Do any one know how to do that?

Alex
  • 4,983
  • 1
  • 29
  • 38
kiddo
  • 1,556
  • 7
  • 30
  • 60
  • see similar question with answers. http://stackoverflow.com/questions/238603/how-can-i-get-a-files-size-in-c – Saar Nov 26 '09 at 06:44

1 Answers1

8

To get all your info in one shot, use:

CFileStatus filestatus;
CFile::GetStatus( filename, filestatus );
Joel Lucsy
  • 8,400
  • 1
  • 27
  • 34