Add readFile function to read a file with a specific precision