how can i give output file in fstream

hi,
i have to direct my output of my c++ code to a file of my desired location (say, on desktop of my pc). please say, which command of fstream will take care of this and also give me the syntax.
Topic archived. No new replies allowed.