loop problem.
Hi all,
I'va got a problem on a loop. the subject is to read lines of a text file A and write these lines in an xml file.
the FileRead Function reads all the lines (confirmed by DetailPrint). I think the line are written in the xml.
But the result is: my XML file only contains
<Main></Main>If somone have an idea...
Here's my code:
ClearErrors
FileOpen$4 $InfoPDVTxt r
FileOpen$0 $InfoPDVTemp a
;FileSeek $0 0 END
FileWrite$0 "<Main>$\r$\n"
FileSeek $0 0 END
loop:
FileRead $4 $1
DetailPrint "$1"
IfErrors done
FileSeek$0 0 END
FileWrite$0 "$1"
Goto loop
done:
FileWrite $0 "</Main>$\r$\n"
; Close the files
FileClose$0
FileClose$4
>
:)