title: How to write into a file at particular path in linux using C
body: <p>I want to write in file <code>chunkcombined.playlist</code> located at the path <code>/var/streaming/playlists/chunkcombined/chunkcombined.playlist</code> using C.</p>
  
  <p>As the files (small chunks of video) get received through a socket, I want to add them automatically to a playlist.</p>
  
  <p>For that I want to write the following lines in the file <code>chunkcombined.playlist</code> using C:</p>
  
  <pre><code>"/usr/local/movies//chunk0.mp4" 1
  "/usr/local/movies//chunk1.mp4" 1
  "/usr/local/movies//chunk2.mp4" 1
  "/usr/local/movies//chunk3.mp4" 5
  "/usr/local/movies//chunk4.mp4" 5
  </code></pre>
  
  <p>How can I write into a file at particular path in Linux using C?</p>