[Mono-list] Opening /dev/null using FileStream

muhr muhr at bluewin.ch
Fri May 7 11:24:30 EDT 2010

Hello Alan

Alan McGovern wrote:
> Could you not just use Stream.Null?

The point is that the string is not fixed to "/dev/null" in the real
application. It could also name a regular file. It's just that if I'm not
interested in this information, I would like to specify "/dev/null".

Of course, the easy hack would be to check the filename for "/dev/null" and
then programmatically switch between FileStream or Stream.Null. But this
problem made me curious whether it is a problem with Mono or whether I'm
just using it wrong.

Best regards,
View this message in context: http://mono.1490590.n4.nabble.com/Opening-dev-null-using-FileStream-tp2134314p2134382.html
Sent from the Mono - General mailing list archive at Nabble.com.

More information about the Mono-list mailing list