Read a whole file, parse to ast