I guess that QTextStream just reads the file from the current position, try adding "f.reset()" before xstrm.readLine().
I guess that QTextStream just reads the file from the current position, try adding "f.reset()" before xstrm.readLine().
ok now it seems work with read() properly. but a strange thing happen in the file after write; the second part of file appear in a wrong way..
Qt Code:
<Light0 pos="4 1 4 1" //wrongTo copy to clipboard, switch view to plain text modeWhy this? thanksQt Code:
<Light0 pos="4 1 4 1" //rightTo copy to clipboard, switch view to plain text mode
Regards
Maybe because you create a text node (i.e. text that is between tags)?Originally Posted by mickey
Could you describe what are you trying to achieve?
Bookmarks