change this line pf = fopen("D:\Zorro\Log\test.txt","w"); by this

pf = fopen("D:/Zorro/Log/test.txt","w");