[Qt-interest] working with qfile

Konstantin Tokarev annulen at yandex.ru
Mon Sep 26 15:18:41 CEST 2011


26.09.2011, 17:14, "Sahana Bhaskar" <Sahana_Bhaskar at infosys.com>:
> Hi all,
>
> I am trying to read a text file using the qfiles. I need to see if the file contains a specific string and if it does I need to replace the whole line with a new line. I tried using QTextStream. Could anyone please help me out with this?

A bit off-topic: haven't you tried to use sed for this task?

-- 
Regards,
Konstantin



More information about the Qt-interest-old mailing list