Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Reading contents from file
- //File creation and adding contents => http://pastebin.com/TzifWJbQ
- #include<stdio.h>
- #include<conio.h>
- void main()
- {
- FILE *test;
- char str[60];
- test=fopen("test.txt","r+");
- if(fgets(str,60,test)!=NULL)
- {
- puts(str);
- }
- fclose(test);
- getch();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement