Search code examples
file-ionsis

Nsis: Problem in FileRead


When I read a file using FileRead and display the contents in a listbox I get some garbage characters after the line.

Eg. if my line is : a.txt

I get something lk: a.txt$$

(Note $$ are some garbage characters) Its probably because of $\r$\n. What can I do to correct this?


Solution

  • Use the TrimNewLines helper macro