Change the way the file is read to the nio implementation.