0
votes

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?

1
I can't see garbage characters in your question, can you edit to make them visible? - Sander Rijken

1 Answers

1
votes

Use the TrimNewLines helper macro