daily pastebin goal
93%
SHARE
TWEET

Untitled

a guest Mar 13th, 2018 49 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. printf("Enter file name:\n");
  2.         scanf("%s", namn1);
  3.         strcpy(filnamn1, namn1);
  4.         strcat(filnamn1, txt1);
  5.         system("cls");
  6.         printf("%s", filnamn1);
  7.         FILE *fp;
  8.         fp = fopen(filnamn1, "w");
  9.         fprintf(fp, "%d\n", *pNrOfVaror);
  10.         for(int i = 0; i < *pNrOfVaror; i++)
  11.         {
  12.             fprintf(fp, "%d\n", varaRegister[i].artikelNummer);
  13.             fprintf(fp, "%s\n", varaRegister[i].namn);
  14.             fprintf(fp, "%d\n", varaRegister[i].antal);
  15.         }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top