There are some very good examples linked to from the official File documentation, and yes you pretty much just call those functions and methods in that package from your own code.
The answer to your second question is also "Yes" :-) You can include that package in your code where-ever you need it.