title: Codeigniter Write_file Question
body: <p>I am writing to a txt file to back up certain posts.  Here is my simple code</p>
  
  <pre><code>$this-&gt;path = APPPATH . "post_backups/";
      $string = $this-&gt;input-&gt;post('post');
      $post_title = $this-&gt;input-&gt;post('post_title');
      $this-&gt;file = $this-&gt;path . $post_title."txt"; 
      write_file($this-&gt;file, $string);
      $this-&gt;index(); 
  </code></pre>
  
  <p>Every thing works fine except this</p>
  
  <pre><code>$this-&gt;file = $this-&gt;path . $post_title."txt"; 
  </code></pre>
  
  <p>I am trying to name my file with the title of the post IE: title.txt.</p>
  
  <p>What I am getting it s this "titletxt".  How should the $post_title . "txt" be written to provide txt as an extension?</p>
  
  <p>Thanks</p>