[Qt-interest] Process_line
Ian Thomson
Ian.Thomson at iongeo.com
Mon Nov 9 17:29:31 CET 2009
Hi,
In that example I believe it means process_line is a function you should
write to do whatever it is you want to do to each line of the file. It's
just an example.
Cheers,
Ian.
Gian Marco Gallo wrote:
> Good afternoon
>
> I'm reading the QFile class definition and there's a part of code that
> I'm not able to compile:
>
> QFile file("in.txt");
> if (!file.open(QIODevice::ReadOnly | QIODevice::Text))
> return;
>
> while (!file.atEnd()) {
> QByteArray line = file.readLine();
> process_line(line);
> }
>
>
> In this part of code I can directly read the content of a file but I
> don't understand from where process_line method comes out. I've tried to
> search if it's a c++ method but it's not, I've tried to search if it's a
> qt class method but it's not...so?
>
> Thanks
>
>
> Gian Marco Gallo
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
More information about the Qt-interest-old
mailing list