I'm using the following command to save a file:
But if the file already exists it throws an exeption. Is it possible to rewrite a file? Thank you!
If you want to "overwrite" an existing file you will have to check if the file with the desired name already exists and if so, delete it (or rename it, or move it, etc). Now perform the save-as operation.