Below code is to save the Vendor numbers to a notepad.
(put it in vuserinit starting after Header)
(put it in vuserinit starting after Header)
//Path for saving the notepad
file, the file name is "MatDocument.txt"
#define filename
"C:\\Documents and Settings\\ravi\\Desktop\\MatDocument.txt"
f_Write(char *str1)
{
          long a;
          a = fopen(filename,"a+");
          if (a==NULL)
       
   {
             return -1;
          }
          else
          {
             fprintf(a,"Material Document
Number is %s\n",str1);
             fclose(a);
          }
}
Comments
Post a Comment