This will provide support for the new api for users who need it, and provide better information in I/O operations, e.g. detailed exception if file cannot be read.
- used Path and methods in java.nio.file.Files internally
- add getPath() method as the counterpart to getFile()
- modified test to use