1. When we create a text file by C by program copying it from other file the how can we change the path (by default its saved in BIN folder)?

2. How do we run other applications using C language (suppose Windows Media Player or HTML)?

Thank You

Nick Evan commented: Nice try... Not. -2

Recommended Answers

All 2 Replies

Not really sure how this is a "brain teaser in C".

1) provide the full path to the desired destination file

2) system() function, or CreateProcess() win32 api function. There are a few other ways too.

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.