From: Christian Neukirchen Date: 2005-09-08T05:06:44+09:00 Subject: Re: ZIP: Writing binary file fails Tim Ferrell writes: > Dmytro Bablinyuk wrote: > >> As for path separator I am using File::SEPARATOR if this is ok. e.g. >> zipfile.file.open('bin' + File::SEPARATOR + 'eclipse.exe', 'w'){ |f| >> .. >> >> Dimitry > > I may be wrong, but I believe you can just use forward slashes and > ruby will handle it properly regardless of platform. Of course if you > are generating paths for consumption outside of ruby then > File::SEPARATOR is the ticket... Even better: File.join("bin", "eclipse.exe") (And with "eclipse.exe", you can as well hardcode the /...) > Cheers, > Tim -- Christian Neukirchen http://chneukirchen.org