How is it possible in C++ .NET to open a file on the computer.

Lets say that I am trying to open this file. Is this possible to do. In this case, Wordpad will open.
Thanks

"C:\\WordPadFile.rtf"

I have tried out to open this like this but when the file is opened. The cmd.exe is also opened. Is this possible to prevent ?

system("C:\\exitfile.txt");

This should do

System::Diagnostics::Process::Start("c:\\test.txt");

Yes it do seem to work great... thanks for that :)

This should do

System::Diagnostics::Process::Start("c:\\test.txt");
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.