You have specified incorrect espace sequence in the string constant. Supported sequences are \n - for new line, \r - for carriage return, \t - for tab, \" for quotation mark, \\ - single backslash.
fh = fopen("C:\windows\test.txt", "w"); //
Error 54 - incorrect espace sequence WRONG - a single backslash should be encoded
as \\
fh = fopen("C:\\windows\\test.txt", "w" ); //
CORRECT
fclose( fh );