lib/Segment/Consumer/File.php
private function write($body) {
    if (!$this->file_handle) {
      return false;
    }

      $content = json_encode($body);
    $content.= "\n";

    return fwrite($this->file_handle, $content) == strlen($content);
  }
private function write($body) {
    if (!$this->file_handle) {
      return false;
    }

      $content = json_encode($body);
    $content.= "\n";

    return fwrite($this->file_handle, $content) == strlen($content);
  }
private function write ( $ body ) { if ( ! $ this -> file_handle ) { return false ; } $ content = json_encode ( $ body ) ; $ content .= "\n" ; return fwrite ( $ this -> file_handle , $ content ) == strlen ( $ content ) ; }
Writes the API call to a file as line-delimited json
@param  [array]   $body post body content.
@return [boolean] whether the request succeeded
Writes the API call to a file as line - delimited json