IReadFile* createReadFile(const io::path& fileName) { CReadFile* file = new CReadFile(fileName); if (file->isOpen()) return file; file->drop(); return 0; }
IReadFile* createReadFile(const core::string<c16>& fileName) { CReadFile* file = new CReadFile(fileName); if (file->isOpen()) return file; file->drop(); return 0; }