[ create a new paste ] login | about

Link: http://codepad.org/0dJCzTC6    [ raw code | output | fork ]

ritaban - C, pasted on Jun 3:
1
2
3
4
5
6
7
8
9
10
11
12
13
#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;
}


Output:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include "prelude.h"
#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;
}
�


Create a new paste based on this one


Comments: