37 $this->_sContent=null;
62 $this->_sAdresse=$sAdresse;
71 return $this->_sAdresse;
79 $this->_sContent=$sContent;
87 $this->_sContent.=$sContent;
93 public function save($sOption=
'w'){
94 $this->
write($this->_sContent,$sOption);
104 $sFichier=file_get_contents($this->_sAdresse);
120 $this->_sContent=null;
121 $this->_sAdresse=null;
131 return file($this->_sAdresse);
137 public function delete(){
140 unlink($this->_sAdresse);
148 return file_exists($this->_sAdresse);
157 return basename($this->_sAdresse);
166 $tTmp=preg_split(
'/\./',$this->_sAdresse);
175 public function write($sContent,$sOption=
'w'){
178 file_put_contents($this->_sAdresse,$sContent);
179 }
else if(!file_put_contents($this->_sAdresse,$sContent)){
180 throw new Exception(
'Can t write "'.$sContent.
'"'.$this->_sAdresse);
197 chmod($this->_sAdresse,$iVal);
200 private function verif(){
202 throw new Exception($this->_sAdresse.
' n\'existe pas');
__construct($sAdresse=null)
write($sContent, $sOption='w')