Studying C #, my books show me classes for readin files. I found 2 that are very similar, and the Visual Studio debugger does not show an obvious difference between the two.
code:
FileStream fs = new FileStream(path, FileMode.Open, FileAccess.Read);
FileStream fs = File.Open(path, FileMode.Open, FileAccess.Read);
Now I wonder what the difference is between these two ways of reading a file. Is there any inner difference you know about?
source
share