write the out put on file
<p>I am very new to php, and i have search and put together this script to convert text to csv and write the out put on the file.</p>

<pre><code>      $File = "/var/apache2/htdocs/loginS/host.txt";
      $Handle = fopen($File,"r");
      $Content = fread ($Handle,filesize ($File));
       fclose($File);
       fclose($Handle);
       $Content = explode("\t", $Content);
       foreach($Content as $Value) {
                //echo $Value."|"; // till this line working 
       fwrite($save, $Value); 
       fclose($save); 
       }
</code></pre>

<p>the problem is when I try to write on the file. I got only one line.what is my error.</p>
