Hi,  I am trying to write a module myself which should write some data to a file on the hard disk.   I
added these test lines in the doLeaf() function,

  FILE *fp = fopen("out", "w");
  fprintf(fp, "hi, I can print to a file!!!\n");

however, it seems only an empty file called "out" was created.  What's wrong?

-- 
Haoxiang Luo,   EBU-1 2103b 
Dynamics & Control, Dept of MAE, UC San Diego
Tel: 858-822-3729(O)   Fax: 858-822-3107
 


Reply via email to