Error when reading from txt file
Hi,
when i am trying to read the content from a text file, sometimes my program reads it and sometimes it does not. The file contains text in the first line with new line break.
The content is produced as a result of execution of a java command and it returns a hashed password and write it to the file. It seems i get error because of the new line break inside the text file because the hashed password produces the new line.
ExecCmd::exec /NOUNLOAD /ASYNC /TIMEOUT=9000 \
'"java -jar $TEMP\Password.jar $password">$TEMP\file.txt'
Pop $0
# you can add some installation code here to execute while application is running.
ExecCmd::wait $0
Push "$TEMP\file.txt"
Exch $0
FileOpen $2 $0 r
FileRead $2 $0
FileClose $2
It there a better way to get the returned content when executing password.jar
Hope someone can help me.