Unsolved Writting blocks of data in TextFile
-
Just write it to the file. Or what exactly is the question?
-
@gde23 I want add each block automatically not write manually every single line.
-
Hi,
Where are the data coming from ?
-
@SGaist the data is coming from a complex excel file
-
So you have to read them from that Excel file, do some processing and write the result to a text file ?
-
@SGaist exactly
-
@Babs
So at some level do you want to (useQFile
&QTextStream
to) loop reading the lines from the file, do whatever modification appropriate in memory, and write the resultant line back out to a new file? Or, you can read all the lines into aQList
in memory, make all the changes, and write the whole new file back. -
@JonB i thougth about using QSettings but my files extensions are not .ini.
-
@JonB for now i created a QLIst and read the data with QTextStream
-
What do you put in your QList ?
Can you explain what is the exact issue you are having with writing the content you are reading from the Excel file to another text file ?