Hi madshi 1 little question for you :
when you calculate the return value of the funcion SizeTostr wich type of file system use :
NTFS,FAT,FAT32,CDFS,UTF ????
because the result size maybe different for each type of fs
I'm not sure what you mean. 1024 Bytes are always 1 KB. And 1024 KBs are always 1 MB. And that's what SizeToStr calculates. How can that depend on the filesystem being used?
Ah ok, well "SizeToStr" doesn't care about that. It only converts a specific number of bytes value to a readable string. If you want to calculate how much space a specific file consumes on a specific file system, then that's also a useful information, but this is outside of the scope of "SizeToStr".