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:

16 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
  7. Very nice post.really I apperciate your blog.Thanks for sharing.keep sharing more blogs.

    หนังเกย์

    ReplyDelete
  8. Very Nice post is this and Keep Sharing this type of blog.Write My Essay

    ReplyDelete
  9. Mobile Repairing course in Noida & Delhi Call 9811-184-872.
    Techno Certified is the best mobile repairing training institute in Delhi/Ncr. Learn Mobile repairing Course and become a mobile Engineer at very low cost.
    Mobile Repairing course in Noida & Delhi

    ReplyDelete
  10. Good Post about C-program.
    Thanks for such good content.Your information is useful. Festival Dates and Days

    ReplyDelete
  11. Thanks for the useful information. Right on. It's more informative and easy to understand. Please help me suggest
    The Best School in Moolakadai
    The Best School in Vyasarpadi

    ReplyDelete