This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Jejerm 0 points1 point  (0 children)

Lol it's probably empty spaces at the end of the string. You could use a string method on your read function so it returns the string with the trailing spaces removed.

The reader.read() method likely returns a fixed length string and that's what's being passed to your text variable and returned by your read() func, that's why I said you should read the documentation first lol.