[Qt-interest] how to shift the content in a line
Oliver.Knoll at comit.ch
Oliver.Knoll at comit.ch
Wed Feb 11 13:52:38 CET 2009
Ravi_Kalepalli wrote on Wednesday, February 11, 2009 5:24 AM:
> ...
> Now I have to append a string at the middle (LINE No 4), how to shift
> the 1 and add the string.
1. newText = Parse the text file (=read) until you hit the place where you need to insert "yourNewString"
2. newText.append(yourNewString)
3. newText.append(the rest of the file)
4. write "newText" to disk
5. end :)
Something like that?
Cheers, Oliver
--
Oliver Knoll
Dipl. Informatik-Ing. ETH
COMIT AG - ++41 79 520 95 22
More information about the Qt-interest-old
mailing list