Hi I’m using some code as follows:
var f = new FileInfo(@"C:\sample.pdf");
var size = f.Length
When I inspect the file in explorer it shows a size of 214KB.
My code shows a size of 218.882KB.
Is this difference due to explorer not including metadata?
Can somebody tell me how through code I could get the 214KB figure?
Try