I have a problem I cant seem to solve alone..
li $v0, 13 # open file to write
la $a0, file # load file
li $a1, 258 # file flag write & create
li $a2, 0x1FF # mode: something i googled xD
syscall
After I created the file and write stuff into it and the file & program closes, the file becomes write-protected/read-only. Is there a possibility to remove that? I'd like to run the function multiple times for testing stuff and if it is write-protected I can't open the data to re-write it.
File contains an absolute path, like: "C:/User/[..]/test.txt" Im running the program using QtSpim and the cause of the write-protection can only be caused by the code from above(atleast I hope that's the case, because all I do is write stuff in it & close it again).
I hope someone knows the solution