You can set Windows to open .doc files with Word or another application. How can I create such a c# applications, which can handle, if for excample I open a .txt file with that application? So the plan is: There’s a information.kkk file wich is a text file and there’s a number in it. I want my c# application (Visual Studio 2010) to receive that number if the file gets opened by it.
Share
If you open a ddd.txt with your application (the exe file), then the string[] Args will have two items: the program’s path itself and the ddd.txt path. The following sample code shows you how you put your ddd.txt file in a textBox on Form1. Many thanks everyone for the help.