Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #include<stdlib.h>
- int main()
- {
- FILE *fp;
- fp=fopen("D:\\newfile.txt","w");
- fputs("Name:Md.HOSEN ZISAD\n",fp);
- fputs("Id:1603110201311\n",fp);
- fputs("Sem: 2nd\n",fp);
- fputs("Sec: C\n",fp);
- fputs("Institution : Premier University Of Chittagong\n",fp);
- fputs("Address: Chittagong , Bangladesh\n",fp);
- fputs("Blood Group : A+\n",fp);
- fputs("Program: Bsc. in CSE\n",fp);
- fputs("Session : January 2017",fp);
- fclose(fp);
- }
- #include<stdio.h>
- #include<stdlib.h>
- int main()
- {
- FILE *fp;
- fp=fopen("D:\ZISAD(1603110201311)newfile.txt","r");
- char c[100];
- while(fscanf(fp,"%s",c)!=EOF)
- {
- puts(c);
- }
- fclose(fp);
- }
- #include<stdio.h>
- #include<stdlib.h>
- int main()
- {
- FILE *fp;
- int i;
- char c;
- fp=fopen("D:\ZISAD(1603110201311)newfile.txt","w");
- for(i=0;i<=10;i++)
- {
- if(c=='?')
- break;
- c=getchar();
- fputc(c,fp);
- }
- fclose(fp);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement