title: C and file permissions
body: <p>I am using Ubuntu Lucid Lynx</p>
  
  <p>is it possible to write data in a file through a C program which has read only permission. If it's not possible, then is there any way to give sudo access to the C program.</p>
  
  <p>For files without permissions, I would save the data in a string. Then i would open the file with write option:</p>
  
  <pre><code>FILE *fp = fopen(file_path,"w")
  fputs(string,fp);
  fclose(fp);
  </code></pre>