views:

304

answers:

2

Hey guys, I Am working on windows MFC application C...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 dont know how to display the size of a file..do any one know how to do that..it will be helpful for me

thanks in advance..

A: 

see similar question with answers.

http://stackoverflow.com/questions/238603/how-can-i-get-a-files-size-in-c

Saar
+3  A: 

To get all your info in one shot, use:

CFileStatus filestatus;
CFile::GetStatus( filename, filestatus );
Joel Lucsy
oh!thanks alot Joel it helped me alot...
kiddo