Created
September 10, 2014 15:11
-
-
Save kokosabu/877609cfbc01771ffd83 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int main() | |
{ | |
FILE *input; | |
char buf[16]; | |
input = fopen("num.txt", "r"); | |
if(input == NULL) { return -1; } | |
while (fgets(buf, 16, input) != NULL) { | |
printf("%s", buf); | |
} | |
fclose(input); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment