I was wondering if it was possible to open a file in the default program. For example, I want to open a .txt file and open it up in the notepad program--not in my program like you usually do.
Thanks in advanced.
I was wondering if it was possible to open a file in the default program. For example, I want to open a .txt file and open it up in the notepad program--not in my program like you usually do.
Thanks in advanced.
I believe there is a FAQ on this. Have you had a chance to look there?
No, no, no--I mean open up the actuall program "Notepad" with the desired .txt file opened inside it.
What I am doing is writing a program that allows someone to view the ReadMe.txt. When they choose to do this, Notepad opens up with ReadMe.txt inside (similar to opening a .txt file as people usually do).
Ah, you mean the FAQ on running programs from within programs then.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
>> No, no, no
No, you didn't check the FAQ, or no you think I misunderstood you?
Here's the FAQ I was thinking of:
http://faq.cprogramming.com/cgi-bin/...&id=1043284392
The last option is probably your best bet, as you can pass it a document and let whatever application is setup to open that document open it.