R
Rush
If i create a new StreamReader object, based on a filename that does
not exist, the SR correctly raises an exception that the file doesn't
exist. Great! I love it.
BUT....then SR proceeds to create a zero length file using the
incorrect filename parameter!!
WTF??? Is this supposed to be a feature??? Creating a file as a
result of an exception? Isn't there a flag for this?
I'll guess I'll have to pass the filename through File.Exists() first,
then bypass StreamReader if false.
Anyone else experienced this?
not exist, the SR correctly raises an exception that the file doesn't
exist. Great! I love it.
BUT....then SR proceeds to create a zero length file using the
incorrect filename parameter!!
WTF??? Is this supposed to be a feature??? Creating a file as a
result of an exception? Isn't there a flag for this?
I'll guess I'll have to pass the filename through File.Exists() first,
then bypass StreamReader if false.
Anyone else experienced this?