Use the FileInfo class. It accepts the full path to a file as its constructor, then you can use the Length property to get the size of the file in bytes. Divide this by 1024 and you have it in kilobytes.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.