Opens a file both for reading and writing. If a file is not existing it creates one, else if the file is existing it will be over written.