Guest User

Untitled

a guest
Feb 20th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.21 KB | None | 0 0
  1.     do{
  2.                 c = fgetc(file);
  3.                 if(31 < c && c < 127){
  4.                         c = fgetc(file);
  5.                         if(31 < c && c < 127){
  6.                                 c = fgetc(file);
  7.                                 if(31 < c && c < 127){
  8.                                         c = fgetc(file);
  9.                                         if(31 < c && c < 127){
  10.                                                 fseek(file, -4, SEEK_CUR);
  11.                                                 c = fgetc(file);
  12.                                                 i = 0;
  13.                                                 while(31 < c && c < 127){
  14.                                                         string[i] = (char)c;
  15.                                                         c = fgetc(file);
  16.                                                         i++;
  17.                                                 }
  18.                                                 string[i] = NULL;
  19.                                                 printf("%s\n", string);
  20.                                         }
  21.                                 }
  22.                         }
  23.                 }
  24.         }while((char)c != EOF);
Add Comment
Please, Sign In to add comment