Display file info and optionally write it to a file (eg, for self-documenting src file sizes).