Get size of file

i want to get size of file by new System.IO.FileInfo(filename).SizeInKB but in folder its showing 0kb, but in output by BOT ,im getting 24 KB likethis which keeps on increasing after multiple run

Hi ,
Can you try by making the Variable Null before the Assign Activity .

no, its wont work since in folder its showing OKB but in ouput im getting size 240KB

@Ananya1 Are you sure the File is the same file present in the Folder that you want to Check?

yes im sure

@Ananya1 Are you implementing any operations to the File before Reading the Size, like inserting Data into the File? Also Can you send a Screenshot of the Implementation that you have done?