From: yvon.thoravalNO-SPAM@... (Yvon Thoraval) Date: 2004-03-31T22:59:31+09:00 Subject: Re: [newbie] prob with join "/" Robert Klemme wrote: > > Why is that a reason to not use File.split and join? Are those paths > formatted differently? Normally Java uses the formatting of the platform > which Ruby does, too. The only case where they differ is a Windows box > with Ruby on cygwin IMHO. File.split doesn't apply here, IMHO, because i do have "hard coded" path parts (ie are attributes of an xml tag), the file separator is always "/", doesn't depend upon platform. then, i do right now : pl = File.join(( context + path + "languages/bottles").split("/").select {|x| x && x != ""}) and i'm sure Ruby is aware of File::SEPARATOR, no more need to read the java one...which is the same. tanxs for your help ! -- yt