Advertisement
Guest User

jk123

a guest
Dec 7th, 2012
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.18 KB | None | 0 0
  1. if((output = fopen(outputfilename, "r+")) != NULL)
  2.     {
  3.         printf("Output file already exists. Overwrite? (y/n)");
  4.         scanf(" %c", &answer);
  5.         if (answer == 'n')
  6.         {
  7.             return 0;
  8.         }
  9.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement