Home > other >  How to modify the file in qt. Some part of the data to a line
How to modify the file in qt. Some part of the data to a line

Time:05-13

The inside of the file content is in accordance with the format DTFD 23 FRG 24 def I now want to modify the FRG 24 for FRG 18, part of the code while (! Stream. AtEnd ()) {QString line=stream. ReadLine (); QStringList list=line. The split (" "); If (" FRG "==list. The at (0)) {//the stream & lt; <"FRG" & lt; <"" & lt; CodePudding user response:

Has been resolved, the use of substitution function,

CodePudding user response:

The original poster can will explain in detail, the replacement function is a need to read a line or read all the files
  • Related