J
John Salerno
In Murach's C#, it shows that StreamWriter and StreamReader both take a
stream object as a parameter, and the book's examples of these two
classes all first create a FileStream object. But I notice in the VS
help files that they use the two classes directly, without creating a
stream, and that StreamWriter and StreamReader can both take a string
parameter as well. Is this new to .NET 2.0? What's the difference
between doing this and explicitly creating a FileStream object? Is it
called implicitly anyway?
stream object as a parameter, and the book's examples of these two
classes all first create a FileStream object. But I notice in the VS
help files that they use the two classes directly, without creating a
stream, and that StreamWriter and StreamReader can both take a string
parameter as well. Is this new to .NET 2.0? What's the difference
between doing this and explicitly creating a FileStream object? Is it
called implicitly anyway?