Skip to content

Instantly share code, notes, and snippets.

@lotusirous
Created June 26, 2016 15:55
Show Gist options
  • Save lotusirous/76f924fe9a1ca211b0a3f0a3936dd831 to your computer and use it in GitHub Desktop.
Save lotusirous/76f924fe9a1ca211b0a3f0a3936dd831 to your computer and use it in GitHub Desktop.
#include <stdio.h>
int main() {
FILE *fp;
char c;
fp = fopen(__FILE__,"r");
do {
c = getc(fp);
putchar(c);
}
while(c != EOF);
fclose(fp);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment