Pia
Pia

Reputation: 473

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?

Upvotes: 0

Views: 595

Answers (1)

Anders
Anders

Reputation: 101736

Use the TrimNewLines helper macro

Upvotes: 1

Related Questions