Requires a path to the file being opened.