File details from a string in C#
Posted
by acadia
on Stack Overflow
See other posts from Stack Overflow
or by acadia
Published on 2010-06-08T17:31:11Z
Indexed on
2010/06/08
17:32 UTC
Read the original article
Hit count: 274
c#
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;
© Stack Overflow or respective owner