JohnnyBGoode
Programmer
I have a string "MyFile.doc". In the end, I would like ".doc". So, I would like to try to find the location of the ".", and then take the rest of the string. How can this be done?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
String fileName = @"Myfile.doc";
String extension = Path.GetExtension(fileName);