This code will save the Vendor numbers to a notepad file.
(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