C Program to create and write a File

#include<stdio.h>
#include<conio.h>

int main()
{
FILE *fp;
char ch;
fp = fopen("one.txt", "w");
printf("Enter data");
while( (ch = getchar()) != EOF) {
    putc(ch,fp);
}
fclose(fp);

return 0;
}

Reactions:

10 comments:

  1. Every weekend i used to go to see this site, because i wish for enjoyment, for the reason that this this site conations in fact nice funny information too.

    ReplyDelete
  2. नोटबंदी के 50वें दिन, मोदी सरकार के फैसले से निराश हैं जनता
    Readmore todaynews18.com https://goo.gl/NJUQY9

    ReplyDelete
  3. Insightful information shared here. One can also get the admission in best schools of architecture only at SMMCA Nagpur. Thanks for sharing.

    ReplyDelete
  4. thank the good topic.
    Welcome To Casino online Please Click the website
    thank you.
    gclub casino
    gclub จีคลับ
    gclub

    ReplyDelete
  5. Thank you for your sharing this good article.
    please welcome to gclub kasino online all game click here to join us now
    thank you!


    goldenslot casino
    บาคาร่าออนไลน์
    gclub casino


    ReplyDelete
  6. distance learning for

    everyone and everywhere. It's a free educational portal.

    ReplyDelete