Add option for getting file size

msg code is 523
the function is optimized for UNIX systems (I didn't find optimization for Windows).
the size is returned in binary format of long variable