save file to usb

i want to save a file to pen drive using C++ code
i don't know how to set directory of the file.

plz help
Registered users can post here. Sign in or register to post.