From: Pit Capitain Date: 2004-12-17T17:11:50+09:00 Subject: Re: Loading configuration files in an OS-agnostic way Peter Cooper schrieb: > On 17 Dec 2004, at 07:52, Gavri Savio Fernandez wrote: > >> unusable as is, in Windows, because it assumed that the configuration >> file is named .google_key and Win 2000 Professional atleast does not >> allow '.' to be the first character of a filename. > > > Are you sure? That strikes me as odd, and Windows XP (which is > essentially 2000+goodies anyway) is fine with it. Most systems I have > encountered which are attempting to be agnostic use a period regardless > (or a tilde, as you have). At least on Win 2000, you can't create such a file in the Windows Explorer, but you sure can in Ruby: File.open ".google_key", "w" do |out| out.puts "# config" end Regards, Pit