files passed to the program
My question is simliar to the contex of this post. I understand acutally "hard coding" the address of the file you want to open in your program but what about when you don't know where the file is when your program is run. For example when I double click on a text file in windows it runs notepad. That file can be located anywhere so your program does't know where it is. Not knowing a lot about windows programming I assume that windows somehow passes the location of the file to your program. I'm just wondering how you set up your program to get that information from the OS