File details from a string in C#
- by acadia
Hello,
I have a string in C#
String file="\\mserver-80\docs\somedoc.doc"
Now How do I get fileInfo from the above sting.
What I mean is,
I want to declare something like
FileInfo fInfo = new FileInfo(file);
fileExtn = fInfo.Extension;