Create file_opt_helper.php

writeToFile : 
writeToFile($fileName,$content,$mode='a');

readFile:
readFile($fileName);

nameOfFile:
nameOfFile($directoryPath,$NeedPath=FALSE);

dirFileInfo:
dirFileInfo($directoryPath);

getFileInfo:
getFileInfo($fileName);

mimeOfFile:
mimeOfFile($fileName);

downloadFile:
downloadFile($fileName,$content);

displayDir:
displayDir($directoryPath);

delFiles:
delFiles($directoryPath,$delInnerFolders=FALSE);