When the contents of Genre.txt are:Action
Cartoon
Comedy
Crime
Documentary
Drama
Family
Fantasy
Film Noir
Foreign
Hacker
Horror
Kung Fu
Puzzle
Romantic
Sci Fi
Sport
Thriller
Trilogy
Twistthis script will remove the trailing 't' in the word Twist.
FileRead, GenreCont, %a_desktop%\Genres.txt CurGenre=Jesus GenreCont.="`n" CurGenre Msgbox, % GenreCont Sort, GenreCont Msgbox, % GenreContBut when adding this extra line to remove all of the instances of `r, it works perfectly fine.
FileRead, GenreCont, %a_desktop%\Genres.txt CurGenre=Jesus GenreCont.="`n" CurGenre [color=#BF0000]StringReplace, GenreCont, GenreCont, `r,, ALL[/color] Msgbox, % GenreCont Sort, GenreCont Msgbox, % GenreContI'm not sure if this would constitute a bug or not, so remove if you must. If it's not, an explanation at why this little gremlin exists would be grand.
Thanks!




