Use IoResult for File::new

Signed-off-by: Peter Atashian <retep998@gmail.com>