I have a list of various directories that are saved in a .txt file, and I use file.readlines() to put all the lines in that .txt file into a list.
Is there a way I could filter out the "\n" at the end of every entry?
One line in this .txt folder would look something like this
D:/Music/Song.mp3\n
I am basically taking the entries from the .txt file and putting them into a Tkinter ListBox so the user can select their song from that ListBox.