Created
September 15, 2016 20:40
-
-
Save shakked/7513d20f029d78e75dfd59c7f0d8a301 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 "my.h" | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <fcntl.h> | |
int main(int argc, char **argv) | |
{ | |
FILE *fp; | |
char str[60]; | |
/* opening file for reading */ | |
fp = fopen("encrypted.txt" , "r"); | |
if(fp == NULL) | |
{ | |
perror("Error opening file"); | |
return(-1); | |
} | |
while(1) { | |
if( fgets (str, 4, fp) != NULL ) { | |
puts(str); | |
} else { | |
break; | |
} | |
} | |
fclose(fp); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment