Opens a file to read (when mode equals "r"), write ("w") or append ("a") to. This method returns a negative value if it fails.
mode
"r"
"w"
"a"