How to check logical and physical file size on disk using C# file API -


how read logical , physical file size using c# api.

enter image description here

(new fileinfo(path).length) 

is actual size. size on disk, don't think there's api it, can using actual size, , cluster size.

there's info on calculation required here: http://social.msdn.microsoft.com/forums/en-us/vsexpressvcs/thread/85bf76ac-a254-41d4-a3d7-e7803c8d9bc3


Comments

Popular posts from this blog

Cursor error with postgresql, pgpool and php -

delphi - ESC/P programming! -

c++ - error: use of deleted function -