System.IO.FileInfo to get the filesize

Hi Friends

How can i use System.IO.FileInfo to get the file size ?

cheers :smiley:

Happy learning :smiley:

3 Likes

Here is the screenshot @pattyricarte

But make sure str is of type system.io.fileinfo :slight_smile: Then you will get all the things in the info

image

5 Likes

@HareeshMR

Thanks a lot as always :smiley:

cheers :smiley:

Happy learning :smiley:

6 Likes

Happy to help @pattyricarte

:slight_smile:

2 Likes

@pattyricarte You can use this int v1 = new System.IO.FileInfo("your file path ").Length

6 Likes

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.