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. Ibrahim Siddiquee\n",fp);
- fputs("Id:1603110201308\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 : O+\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:\\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:\Tanvir(1603110201308)newfile.txt","w");
- for(i=0;i<=10;i++)
- {
- if(c=='?')
- break;
- c=getchar();
- fputc(c,fp);
- }
- fclose(fp);
- }
Add Comment
Please, Sign In to add comment