How do I make \\n actually work in my output? At the moment it just writes it all in 1 long block. Thanks for any help
\\n
Dir.chdir \'C:/Users/name
Actually you don't even need the block:
Dir.chdir 'C:/Users/name/Music' music = Dir['C:/Users/name/Music/*.{mp3, MP3}'] puts 'what would you like to call the playlist?' playlist_name = gets.chomp + '.m3u' File.open(playlist_name, 'w').puts(music)