From: Tom Felker Date: 2003-05-09T05:56:34+09:00 Subject: Re: Platform independent null device access On Thu, 2003-05-08 at 10:52, Robert Klemme wrote: > What do people think about adding a method to class IO that returns an IO > object for the platform dependend null device (NUL on win, /dev/null or > /dev/zero on unix)? Alternatively there could be a constant with the > platform dependent name of this device, if it can always be opened like a > file on all supported platforms. > > Regards > > robert /dev/null is great when the program doesn't have it's own way to discard data, but in this case, it might be easier and more cross-platform to simply have an IO object who's read and write do nothing. -- Tom Felker Rather a geek than a sheep.