Quote Originally Posted by guilugi View Post
If you output the result of file.size(), is it null ?
Maybe Qt can't open it (bad permissions, wrong path...) ?
I logged in as Administrator on Windows XP, and there's no file permission problem. Also if there is permission problem, than i couldnt write on these files. But i can (it doesnt search but it appends. very strange)

Qt Code:
  1. qint64 fileSize = file.size(); // 3651
  2. QString configFileContent = file.readAll(); // 0
  3. int configFileSize = configFileContent.count(); // 0
To copy to clipboard, switch view to plain text mode 

What do you think now?