From: "Jan E." Date: 2012-10-30T20:09:54+09:00 Subject: Re: Cant seem to find whats worng Hi, Nuggety Nanna wrote in post #1081961: > Could anybody help me to figure out what is wrong with this script. I am > new to ruby and this script is supposed to make a playlist, which it > does do, but when I try to use the playlist it is empty. Thanks. A more meaningful thread title would have been nice... So you have checked that the playlist file contains the correct entries? And still it appears to be empty when you open it with your music player? What happens when you write a playlist "by hand"? I'm not sure, but this doesn't look like a Ruby problem. If the file paths are there, then your Ruby script has done exactly what it should do. Everything else is up to your music player. By the way, the "shuffle" method is useless. The Array class already has a shuffle method built in: http://ruby-doc.org/core-1.9.3/Array.html#method-i-shuffle -- Posted via http://www.ruby-forum.com/.