How can I use Qt to read from a binary file to a structure?

I'm trying to replace

Foo foo;
fread(foo,sizeof(FOO);

I've tried QFile::read() but it wants a char buffer.

_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to