Hi all,

how can I read a block device (/dev/cdrom)? This works for files:

Code:
QFile file("/home/chris/backup.img");

file.open(QFile::ReadOnly);

while (!file.atEnd()) {
    QByteArray data = file.read(2048);
    (...)
}

file.close();
...but the method with

Code:
QFile file("/dev/cdrom");
won't work! (/dev/cdrom is a symlink to /dev/sr0)

Any hints?

Thanks!
Chris