From: Nobuyoshi Nakada Date: 2003-05-09T08:15:06+09:00 Subject: Re: Platform independent null device access Hi, At Fri, 9 May 2003 07:22:44 +0900, Josef 'Jupp' Schugt wrote: > > NUL on win, > > AFAIK Windows *has* /dev/null but things may be different with the > obsolete 9x series. Really? Don't you mean cygwin? Anyway, what about this? def File.null open("/dev/null", "r+") rescue Errno::ENOENT open("nul", "r+") end -- Nobu Nakada