21 protected $fileResource;
35 $this->inputFile = $file;
36 if(!file_exists($file)) {
41 if(FALSE === ($FD = @fopen($this->inputFile,
'r'))) {
42 throw new Exception(
"Cannot open File $this->inputFile\n");
46 $this->error = $e->getMessage();
49 $this->fileResource = $FD;
53 public function getError(){
57 public function getFileResource(){
58 return($this->fileResource);
79 while($rline = fgets($FD, 1024)) {
82 if ($line ===
"")
continue;
83 if (preg_match(
'/^#/', $line))
continue;
char * trim(char *ptext)
Trimming whitespace.