Hi,
I wrote the following piece of code to read the file data;
QFile* LoggerManager
::getLogFile() {
if(_logFile.exists() &&
_logFile.isOpen() &&
_logFile.isReadable() &&
(_logFile.size() > 0))
{
return &_logFile;
}
return NULL;
}
LoggerManager::getInstance()->getLogFile()->readAll()
QFile* LoggerManager::getLogFile()
{
if(_logFile.exists() &&
_logFile.isOpen() &&
_logFile.isReadable() &&
(_logFile.size() > 0))
{
return &_logFile;
}
return NULL;
}
LoggerManager::getInstance()->getLogFile()->readAll()
To copy to clipboard, switch view to plain text mode
But it returns me 0 all the time although the file is loaded(about 200 KB)
Any ideas?
Bookmarks