Qt-interest Archive, March 2002
AW: Read line of file to QString
Message 1 in thread
Hello Mark,
Use the class QITextStream. for reading the text use the function readLine.
Have a look at the qt-example code
Hope this helps Christian
> -----Ursprüngliche Nachricht-----
> Von: Mark Finlay [SMTP:9839143@student.ul.ie]
> Gesendet am: Mittwoch, 13. März 2002 12:57
> An: qt-interest@trolltech.com
> Betreff: Read line of file to QString
>
> I want to read the data from a text file line by line. Each line of text
> will
> be stored in a QString. I will then store the list of strings in a
> QStringList.
>
> How should I go about reading the file line by line and storing the text
> in a
> string?
>
> Thanks, Mark
>
> --
> List archive and information: http://qt-interest.trolltech.com