Advertisement
Guest User

Untitled

a guest
Jan 24th, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. #include<stdio.h>
  2.  
  3. int main()
  4. {
  5. FILE *ptr_file;
  6. char buf[1000];
  7.  
  8. ptr_file =fopen("C:\\Users\\UÄŸur\\Desktop\\Text2.txt","r");
  9. if (!ptr_file)
  10. return 1;
  11.  
  12. while (fgets(buf,1000, ptr_file)!=NULL)
  13. printf("%s",buf);
  14.  
  15. fclose(ptr_file);
  16. return 0;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement