+Sandra Gogaa

Write in a  file in Codewarrior

Discussion created by +Sandra Gogaa on Jul 21, 2011
Latest reply on Jul 22, 2011 by CrasyCat

hi Guys;

I include the following library in my code.

#include <stdio.h>
#include <stdlib.h>

 

i want to open a file and save what ever i get in debugger during running my experience.

Why this line of code doesn't work :

File *fp;

fp=fopen("C:\test.txt","w");

 

it gace error L1822 : for float number! although I add ansibi.lib. Without these two line, my code works fine.

Could you please share me your experinece?

 

 

Thanks;

Outcomes