Sure.
Well I made this:
Qt Code:
  1. #include <QtCore/QCoreApplication>
  2. #include <QFile>
  3. #include <QDebug>
  4.  
  5. int main(int argc, char *argv[])
  6. {
  7. QCoreApplication a(argc, argv);
  8.  
  9. QFile f("C:\\Program Files (x86)\\TeamViewer\\Version6\\TeamViewer.exe");
  10. if( !f.exists() )
  11.  
  12. {
  13. // It does not exist
  14. qDebug() << "The file does not exist.\n";
  15. }
  16.  
  17. // It exists, open it
  18. if(!f.open(QIODevice::ReadOnly))
  19. {
  20. // It could not open
  21. qDebug() << "Failed to open.";
  22.  
  23. return 0;
  24. }
  25.  
  26. // It opened, now we need to close it
  27. qDebug() << "Success";
  28.  
  29. int size = f.size();
  30. qDebug() << "size: " << size;
  31.  
  32. QDataStream data(&f);
  33. char * buffer;
  34. uint u = sizeof(f);
  35. data.readBytes(buffer,u);
  36.  
  37.  
  38. f.close();
  39. return a.exec();
  40. }
To copy to clipboard, switch view to plain text mode 

Then I thought that I may need to make a loop,in order to read a byte after byte..but still nothing.