Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

jk123

By: a guest on Dec 7th, 2012  |  syntax: C  |  size: 0.18 KB  |  views: 21  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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.         }