cant write text file in c
<p>Im trying to learn c, I'm using tutorialspoint, and the function they give me doesn't do anything on my computer, the function is:</p>

<pre><code>#include &lt;stdio.h&gt;

int main (){
    FILE *fp;

    fp = fopen("/tmp/test.txt", "w+");
    fprintf(fp, "This is testing for fprintf...\n");
    fputs("This is testing for fputs...\n", fp);
    fclose(fp);
}
</code></pre>

<p>Am I missing something?</p>