hi all
this is my prog

Qt Code:
  1. QCoreApplication a(argc, argv);
  2. QString path("e:\\digi.txt");
  3. QFileInfo info(path);
  4.  
  5. int x;
  6. int *b;
  7. b=new int;
  8. QFile ready(path);
  9. ready.open(QIODevice::ReadOnly);
  10. QTextStream point(&ready);
  11. while(!ready.atEnd()){
  12. point>>x;
  13. }
  14. ready.close();
  15. int k;
  16. k=info.size();
  17. qDebug()<<x;
To copy to clipboard, switch view to plain text mode 


now this code wont print latest data in the text file but will print the first data in the text file why?
thanks