1 Reply Latest reply on Mar 5, 2013 5:02 PM by user_78878863

    How can i use the function "fprintf()" in PSoCCreator 2.0

    salima.zaari

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

         

      *******************************************************************************/
      void main()
      {
          ...

         


          FILE *fp;

         

      ....

         

      fp = fopen( "Slave.txt", "w" ); // Open file for writing
      fprintf(fp, " %u %u\n", Array[0],Array[1]);

         

      ....

         

       

         

      }

         

       is that correct?