File size

say 'input.txt'.IO.s;
say '/input.txt'.IO.s;

Cross-platform version of the second one:

say $*SPEC.rootdir.IO.child("input.txt").s;