Hi there,

I have been trying to develop a program in the C language, although have struck a problem. I have written the following line of code, although it does not work in the way in which I had intended.

f=fopen ("C:\Binary","w");

I wanted this code to create a file on the C drive of my computer and open it, ready to write to. Although the code creates the file in which every directory I execute the file from, not at the file path which I have specified.

Any help or thoughts will be much appreciated.
Thank You, in advance.