Advertisement
thenewboston

C Programming Tutorial - 52 - Append to File

Aug 22nd, 2014
345
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.21 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main()
  5. {
  6.     FILE * fPointer;
  7.     fPointer = fopen("bacon.txt", "a");
  8.     fprintf(fPointer, "\n- a hikew by Bucky Roberts");
  9.     fclose(fPointer);
  10.  
  11.     return 0;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement