In my application I need to get the filename of the file which is opened. I found several threads about how to get the name of the process which is running but nothing about how I can get the file name (or path, at least I need the file name) of the current opened document.
I know how I can get the path:
FileInfo info = new FileInfo(fileName)
string path = info.FullName;
But to use this I need the string "fileName" which is the name of the current opened file.
Any suggestions? :)