private function write_to($file, $data)
  {
    $handler = fopen($file, "w");
    fwrite($handler, $data);
    fclose($handler);
  }
private function write_to($file, $data)
  {
    $handler = fopen($file, "w");
    fwrite($handler, $data);
    fclose($handler);
  }
private function write_to ( $ file , $ data ) { $ handler = fopen ( $ file , "w" ) ; fwrite ( $ handler , $ data ) ; fclose ( $ handler ) ; }
Creates the handler and writes the files.
@param $file string | The filename.
@return string
Creates the handler and writes the files .