Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main()
- {
- FILE *ptr_file;
- char buf[1000];
- ptr_file =fopen("C:\\Users\\UÄŸur\\Desktop\\Text2.txt","r");
- if (!ptr_file)
- return 1;
- while (fgets(buf,1000, ptr_file)!=NULL)
- printf("%s",buf);
- fclose(ptr_file);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement