need to know how many bytes are in a file

How do I find out how many bytes are remaining in a file and store that in a variable?
Thanks
Topic archived. No new replies allowed.