I recently made a notepad like program for C# and found a library for using file associations. I am wondering how I would pass the path of the file double clicked in explorer, to a string so the file can read and 'open' the text file (like how notepad does). I have googled for a while, and asked around a few forums, and my friends. Any answers or nudges in the right direction are appreciated. Thank You
(note: I've already tried reading it from the string[] args
paramater in Main()
, which was suggested by someone else)
EDIT: Solved, it was the args[0]
. I was really tired when I started on this