From: Dave Bass Date: 2008-07-14T23:59:52+09:00 Subject: Re: Timer program Jacob Grover wrote: > I've been looking to enhance a timer program I've made. It's extremely > simple so I want to add new features like maybe an alarm when the times > up, I'm going to try to download an audio file such as an mp3 for an > alarm, would there be any way to not only run the sounds on my computer > but every other computer that the program is installed on. I was just > going to create the file for the program then the sub file for sounds. > Is there any way to tidy that up? Do you mean combine the MP3 file with the program? You could append your MP3 file as data after __END__, or define it as a String within your program. This will probably play havoc with your text editor though. Better would be to convert the binary data to hex values. The pack and unpack methods should help. Dave -- Posted via http://www.ruby-forum.com/.