5
votes
7answers
4k views

How do I combine all lines in a text file into a single line?

I want to get all lines in a text into one line. I'm a beginner at coding trying to learn by doing. I've spent four hours trying to solve this problem. I know there's a simple solution to this ...