M
Michael A. Covington
I just saw something like this in someone else's code and am curious...
string fname;
.... store a filename in fn ...
FileInfo fi = new FileInfo(fname);
string name = fi.Name;
What is the difference between fname and name? By creating FileInfo do we
verify that the file exists? Retrieve its full path? Or what?
string fname;
.... store a filename in fn ...
FileInfo fi = new FileInfo(fname);
string name = fi.Name;
What is the difference between fname and name? By creating FileInfo do we
verify that the file exists? Retrieve its full path? Or what?