Get the version of a file.