I'd like to read in the readme.txt file and display it in a custom page. I'm having a problem reading the file in and storing it in a variable that I can use as the content of a dialog. The following code has problems, it reads all 128 lines of the code but apparently there is a limit on how much strcpy will copy because at the end I only have the first 963 characters of the read me file in the string.
FileOpen $0 "$INSTDIR/readme.txt" r
StrCpy $3 "" ; initialize!
loop:
FileRead $0 $2
IfErrors done
StrCpy $3 "$3$2"
Goto loop
done:
FileClose $0
LogText "Setting ready message\r\n$3" Is there a better way to do this? Is there a way to append text to the control? Thanks.