Hai

how to read Text file using structure.

Qt Code:
  1. struct commonDetails()
  2. {
  3. char *no=new char[6];
  4. char *name=new char[10];
  5. };
  6. commonDetails cn;
  7. QFile fileA(fileName);
  8. fileA.open(QIODevice::ReadWrite);
  9. QTextStream data(&fileA);
  10. data>>cn;
To copy to clipboard, switch view to plain text mode 

but it is not working...
help please

umulingu
Banaglore