post createDirectory
pre chkTextFile