Hi!
I'm using
MyFile.setFileName("c:\test.txt");
ConOut = MyFile.read(Q_INT64_C(1024));
QFile MyFile;
QString ConOut;
MyFile.setFileName("c:\test.txt");
MyFile.open(QIODevice::ReadOnly);
ConOut = MyFile.read(Q_INT64_C(1024));
To copy to clipboard, switch view to plain text mode
to read the file containing
3 Terry Pratchett – Die Gelehrten der Scheibenwelt
4 Terry Pratchett – Rettet die Rundwelt – die gelehrten der Scheibenwelt 2
5 Terry pratchett – kleine freie männer
6 Christopher Moore - Bibel nach Biff
14 The SCHWA Corporation - SCHWA Weltbetriebsanleitung
15 Walter Moers - Die Stadt der Träumenden Bücher
16 Walter Moers - Rumo & Die Wunder im Dunkeln
17 Jens sparschuh – waldwärts
43 gdertg retgtrg - tdgtgthtrht
3 Terry Pratchett – Die Gelehrten der Scheibenwelt
4 Terry Pratchett – Rettet die Rundwelt – die gelehrten der Scheibenwelt 2
5 Terry pratchett – kleine freie männer
6 Christopher Moore - Bibel nach Biff
14 The SCHWA Corporation - SCHWA Weltbetriebsanleitung
15 Walter Moers - Die Stadt der Träumenden Bücher
16 Walter Moers - Rumo & Die Wunder im Dunkeln
17 Jens sparschuh – waldwärts
43 gdertg retgtrg - tdgtgthtrht
To copy to clipboard, switch view to plain text mode
but what i get is
3 Terry Pratchett ? Die Gelehrten der Scheibenwelt
4 Terry Pratchett ? Rettet die Rundwelt ? die gelehrten der Scheibenwelt 2
5 Terry pratchett ? kleine freie männer
6 Christopher Moore - Bibel nach Biff
14 The SCHWA Corporation - SCHWA Weltbetriebsanleitung
15 Walter Moers - Die Stadt der Träumenden Bücher
16 Walter Moers - Rumo & Die Wunder im Dunkeln
17 Jens sparschuh ? waldwärts
43 gdertg retgtrg - tdgtgthtrht
3 Terry Pratchett ? Die Gelehrten der Scheibenwelt
4 Terry Pratchett ? Rettet die Rundwelt ? die gelehrten der Scheibenwelt 2
5 Terry pratchett ? kleine freie männer
6 Christopher Moore - Bibel nach Biff
14 The SCHWA Corporation - SCHWA Weltbetriebsanleitung
15 Walter Moers - Die Stadt der Träumenden Bücher
16 Walter Moers - Rumo & Die Wunder im Dunkeln
17 Jens sparschuh ? waldwärts
43 gdertg retgtrg - tdgtgthtrht
To copy to clipboard, switch view to plain text mode
As you can see some "-" are changed...wtf is this?! :S
Is there a better way to read files?
Buhmann
Bookmarks