I am not sure CFile is functioning is this way. Such as LibSVMFile, only initialization performs in constructor.