title: Create and write to file on MIPS
body: <p>I'm trying to create a file named "exit.txt", and write some data on it. I have tried different flags and modes, but that doesn't seem to work. This is the code I'm using:</p>
  
  <pre><code>str_exit: .asciiz "/home/LinuxPc/Desktop/exit.txt"
  
  file_write:
  
  li $v0, 13
  la $a0, str_exit
  li $a1, 1
  la $a2, 0
  syscall
  </code></pre>
  
  <p>Is there any way to make it work ??
  Thanks !!</p>