if(err==ERROR_FILE_NOT_FOUND)
throw FileNotFound("Can't find file "+fn, fn);
else
throw SystemError(format("Can't open file '%s'", fn), GetLastError());
}
#else
if(err==ERROR_FILE_NOT_FOUND)
throw FileNotFound("Can't find file "+fn, fn);
else
throw SystemError(format("Can't open file '%s'", fn), GetLastError());
}
#else