C program to Read From a File

#include <stdio.h>
#include <stdlib.h>
void main()
{
    FILE *fptr;
    char filename[15];
    char ch;
    printf("Enter the filename to be opened \n");
    scanf("%s", filename);
    /*  open the file for reading */
    fptr = fopen(filename, "r");
    if (fptr == NULL)
    {
        printf("Cannot open file \n");
        exit(0);
    }
    ch = fgetc(fptr);
    while (ch != EOF)
    {
        printf ("%c", ch);
        ch = fgetc(fptr);
    }
    fclose(fptr);
}

Reactions:

97 comments:

  1. This comment has been removed by a blog administrator.

    ReplyDelete
  2. This comment has been removed by a blog administrator.

    ReplyDelete
  3. its all up to you

    ReplyDelete
  4. This comment has been removed by a blog administrator.

    ReplyDelete
  5. 7 ways to be a better programmer:
    1.Check Your Code First Before Looking to Blame Others
    2.Continuous Learning
    3.Don’t Be Afraid to Break Things
    4.The Professional Programmer
    5.Take Advantage of Code Analysis Tools
    6.Ubuntu Coding for Your Friends
    7.You Gotta Care About the Code

    ReplyDelete
  6. http://download-16-cs.blogspot.ro

    ReplyDelete
  7. The government should be blamed for not taking actions against the government schools which have fail to give quality education. On the other hand we get higher education from private schools but we have to pay a lot for it.
    Pakistan Education News

    ReplyDelete
  8. Great blog posts, it really like to reading of this best education from with private school. Thanks for shared it, Oswaal Books

    ReplyDelete

  9. this is really a very great blog. the information present in this blog will be very useful for us. thank you for sharing with us.
    SEO Company In Chennai

    ReplyDelete
  10. Very Nice Blog I Have Read Your Blog It Is Very Interesting And useful For Computer Science Projects Thank You For Posting and Sharing With Us And Please Give Me More Information About Computer Projects
    final year project for computer science.

    ReplyDelete
  11. Such a great articles in my carrier, It's wonderful commands like easiest understand words of knowledge in information's.

    Hadoop Training in Chennai

    ReplyDelete
  12. Cat6 Cable Manufacturers Supplier

    We have gained a huge popularity in the market by offering excellent quality assortment of Cat6 Cable Manufacturers Supplier. These are manufactured from high grade raw materials and latest technology by our expert team. Best quality and low prices we are supplier. Call us +91 98990 00668.

    mandeepcables.com/cat-6-product-770606.html

    ReplyDelete

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

    ReplyDelete
  14. Great post! I am actually getting ready to across this information, It's very helpful for this blog.Also great with all of the valuable information you have Keep up the good work you are doing well.

    AWS Training in Chennai

    ReplyDelete
  15. Wonderful bloggers like yourself who would positively reply encouraged me to be more open and engaging in commenting.So know it's helpful.
    New Zealand Education Consultants in Chennai

    ReplyDelete
  16. This comment has been removed by the author.

    ReplyDelete
  17. There are lots of information about latest technology and how to get trained in them, like this have spread around the web, but this is a unique one according to me. The strategy you have updated here will make me to get trained in future technologies. By the way you are running a great blog. Thanks for sharing this.

    Painless Dental Treatment In Chennai

    Best Dental Clinic In Adyar

    ReplyDelete
  18. Hi Dear,

    I see your blog daily. your blog is very useful for me & i like so much..


    chemistry tuition - Best Award Winning Tuition Centre since 1999, helping students achieve OUTSTANDING results. Effective methodologies for PSLE, Secondary, O, A Level, JC H2 tuition
    Visit : http://www.smartlab.com.sg/Tuition

    ReplyDelete
  19. Superb. I really enjoyed very much with this article here. Really it is an amazing article I had ever read. I hope it will help a lot for all. Thank you so much for this amazing posts and please keep update like this excellent article.thank you for sharing such a great blog with us. expecting for your.

    iOS App Development Company

    ReplyDelete
  20. Hello Guy
    Do you want to play game in casino online
    Please Click Here now
    thank you
    จีคลับ
    บอลออนไลน
    gclub online

    ReplyDelete

  21. Being new to the blogging world I feel like there is still so much to learn. Your tips helped to clarify a few things for me as well as giving..
    Android App Development Company

    ReplyDelete
  22. great and nice blog thanks sharing..I just want to say that all the information you have given here is awesome...Thank you very much for this one.
    web design Company
    web development Company
    web design Company in chennai
    web development Company in chennai
    web design Company in India
    web development Company in India

    ReplyDelete
  23. The content of your blog is exactly what I needed, I like your blog, I sincerely hope that your blog a rapid increase in traffic density, which help promote your blog

    and we hope that your blog is being updated.

    Financial Management Assignment

    ReplyDelete
  24. virtual accountant is the best way to opt for an assistant without any issues. The virtual accounting services helps in keeping a track of the accounts. Visit our website to know more about us. marhabareception.com

    ReplyDelete

  25. I wondered upon your blog and wanted to say that I have really enjoyed reading your blog posts. Any way I’ll be subscribing to your

    feed and I hope you post again soon.
    iOS App Development Company
    iOS App Development Company

    ReplyDelete
  26. Being new to the blogging world I feel like there is still so much to learn. Your tips helped to clarify a few things for me as well as giving..
    Fitness SMS
    Salon SMS
    Investor Relation SMS

    ReplyDelete
  27. it is really amazing...thanks for sharing....provide more useful information...
    Mobile app development company

    ReplyDelete
  28. I have been surfing the internet for the past two hours The Importance of Research Editing Services and I have not come across such an interesting and magnificent site. It not only has a unique design but also great content that resonates with the audience. I will, therefore, not mind visiting this site occasionally to read both old and new articles.

    ReplyDelete
  29. This article is very much helpful and i hope this will be an useful information for the needed one. Keep on updating these kinds of informative things...
    Fitness SMS
    Fitness Text
    Salon SMS
    Salon Text
    Investor Relation SMS
    Investor Relation Text

    ReplyDelete
  30. great and nice blog thanks sharing..I just want to say that all the information you have given here is awesome...Thank you very much for this one.
    web design Company
    web development Company
    web design Company in chennai
    web development Company in chennai
    web design Company in India
    web development Company in India

    ReplyDelete
  31. Free easy & simple way to learn programming online we provide niit projects, assignments, cycle tests and much more..
    visit===>> http://foundjava.blogspot.in/

    ReplyDelete
  32. I wondered upon your blog and wanted to say that I have really enjoyed reading your blog posts. Any way I’ll be subscribing to your feed and I hope you post again soon.

    Texting API
    Text message marketing
    Digital Mobile Marketing
    Sms API
    Sms marketing

    ReplyDelete
  33. thanks sir for this post and your post is always best and unique.
    Date Sheet

    ReplyDelete
  34. distance learning for everyone and everywhere. It's a free educational portal. online education portal

    ReplyDelete
  35. Really it was an awesome article...very interesting to read..You have provided an nice article....Thanks for sharing..
    Android Training in Chennai
    Ios Training in Chennai

    ReplyDelete
  36. thanks for sharing beautiful information with us. i hope you will share some more infiformation about study notes
    ssc maths questions and answersalso.

    ReplyDelete
  37. A nice article here with some useful tips for those who are not used-to comment that frequently. Thanks for this helpful information I agree with all points you have given to us. I will follow all of them.
    Psoriasis Medicines
    Vitiligo Medicines
    Eczema Treatment
    Ayurvedic Medicine For Immunity

    ReplyDelete
  38. This is a nice post.

    Are you a blogger? If yes, then this tool is only for you. Download this app in your Android phone and be a Pro blogger. Thanks...

    App name - Next Blogger
    Search in Google play store.
    Link - https://play.google.com/store/apps/details?id=com.wNextBlogger_5896456

    ReplyDelete
  39. Really it was an awesome article...very interesting to read..You have provided an nice article....Thanks for sharing..
    Android Training in Chennai
    Ios Training in Chennai

    ReplyDelete
  40. I really enjoyed while reading your article, the information you have mentioned in this post was damn good. Keep sharing your blog with updated and useful information.

    Hadoop Training in Chennai

    ReplyDelete
  41. Wonderful post. This is a nice post and gives in-depth information. Great tips! Online Analytics Course In Noida

    ReplyDelete
  42. I am following your blog regularly and got great information. Thanks for an insightful post.These tips are really helpful. Thanks a lot.Keep it up.Keep blogging.!!

    Best SEO Company in Bangalore
    Website Design and Development Company in Bangalore
    E-Commerce Web Design Company in Bangalore
    Internet Marketing Company in Bangalore

    ReplyDelete
  43. Your blog is very interesting I am a regular reader of your blog. Google Analytics Online Course

    ReplyDelete
  44. EduwizzOnlineTraining is the Best Online Training Institute in Hyderabad, Bangalore. Eduwizz provide courses like Hybris Development, WebSphere Commerce Server,Blockchain Training,Hyperledger Fabric Development ,Ethereum Development ,Commvault Training, Devops , Netapps , Mulesoft ESB ,Machine Learning,Data Science , Internet of Things , Hybris ,Angular JS , Node JS , Express JS , Business Analyst, Selenium testing with webdriver, Guidewire ,Adobe, RPA ,TSM, EMC...etc

    ReplyDelete
  45. I wondered upon your blog and wanted to say that I have really enjoyed reading your blog posts. Any way I’ll be subscribing to your feed and I hope you post again soon.

    PSD to Wordpress
    wordpress website development

    ReplyDelete
  46. I simply wanted to write down a quick word to say thanks to you for those wonderful tips and hints you are showing on this site...
    Best Training Institute in chennai

    ReplyDelete
  47. This is really true, lovely the post. Thanks for sharing.
    Visit us: Design Your Own Windbreaker

    ReplyDelete
  48. Thanks for a great such a nice one information.this is a great blog and good job.
    Visit us: Wholesale Corporate Gifts

    ReplyDelete
  49. India top school app for students and teachers.

    ReplyDelete
  50. Real Trainings is provides all IT-Training and Non-IT Training Institutes information in Hyderabad, Bangalore, Chennai and Corporate Trainings Companies information and Real time Trainers information at one place. In Real Trainings Students can Compare all Institute's Courses with all detailed information.

    ReplyDelete
  51. I read this article. I think You put a lot of effort to create this article. I appreciate your work.
    Dissertation Writing Services

    ReplyDelete
  52. This comment has been removed by the author.

    ReplyDelete
  53. Real Trainings is provides all IT-Training and Non-IT Training Institutes information in Hyderabad, Bangalore, Chennai and Corporate Trainings Companies information and Real time Trainers information at one place. In Real Trainings Students can Compare all Institute's Courses with all detailed information.

    ReplyDelete
  54. Real Trainings is provides all IT-Training and Non-IT Training Institutes information in Hyderabad, Bangalore, Chennai and Corporate Trainings Companies information and Real time Trainers information at one place. In Real Trainings Students can Compare all Institute's Courses with all detailed information.

    ReplyDelete
  55. I'am glad to read the whole content of this blog and am very excited,Thank you for sharing good topic.

    หนังออนไลน์

    ReplyDelete
  56. Thanks for the informative article. This is one of the best resources I have found in quite some time.Nicely written and great info. I really cannot thank you enough for sharing.

    Restaurant in OMR
    Apartments in OMR
    Villas in OMR
    Resorts in OMR

    ReplyDelete
  57. Nice blog. Thanks for sharing such great information.Sparkinfosys is One Of the Best Designing and Development Copmany in Hyderabad.We offer Creative Website Design, Website Development, E-commerce Services, SEO Services, mobile app development ,Android App Development ,Matrimonial we designing company,Logo Designing,BULK SMS SERVICES,Domain Registration...etc

    ReplyDelete
  58. I Read your blog, it’s so informative:
    Explore the Ganges Ghat, Banaras and Great Shiv Temple with the Golden Triangle Tour With Varanasi. Enjoy the Varanasi Tour Package by Pacific India Tour ..
    Thanks
    India Trip Designer
    www.indiatripdesigner.com

    ReplyDelete
  59. Cultural Holidays is a leading Tour & Travel management company with the specialization of various kinds of tour packages developed by the group of professionals which make it unique and one of the most-sought after tour and travel organization in India located in Agra, Uttar Pradesh. We offer domestic tours to a Delhi, Rajasthan, Uttar Pradesh including Jaipur and Agra.

    Same Day Tour Package by Car
    Golden Triangle Tour 4 Days
    Golden Triangle Tour with ranthambore

    Know More Visit Our Website. www.culturalholidays.in

    Emails: info@culturalholidays.in, diptrav@gmail.com

    Mobile: +91 - 9837236920, 9368745567

    ReplyDelete
  60. Hi I’m John Carry from US. Thanks for sharing this valuable Information these words are very Informative.
    Spectrum internet test

    ReplyDelete
  61. Applicants who are apply for Tamil Nadu Set Exam 2018 should check TNSET Result from here. TNSET Exam Result will be declared shortly. Our team is providing direct link of Tamil Nadu SET Result 2018. Further information for Tamil Nadu State Eligibility Test 2018, We advise to visit this article.

    ReplyDelete
  62. Thanks for the informative article. This is one of the best resources I have found in quite some time. Nicely written and great info. I really cannot thank you enough for sharing.

    herbalife in chennai
    weight loss in chennai
    weightgain in chennai
    wellnesscentre in chennai

    ReplyDelete
  63. https://amanatbaba.blogspot.com/

    Visit my blog for Medical Information

    ReplyDelete
  64. Thanks for sharing the information.Impressive and i would like to share this with my friends
    Indian Cyber Army’s most awaited internship is live now. Summer Internship 2018 on “ Ethical hacking” and book your seats before it runs out.Candidates have to get themselves registered to be a part of this Internship program. Here internship will give you on-the-job experience, help you learn whether you and Cyber security industry are a good match and can provide you with valuable connections and references. Here interns are usually exposed to a wide variety of tasks and responsibilities which allows the intern to showcase their strengths by working on projects for various managers that work on different parts of Indian Cyber Army. Becoming a high performing intern is a fantastic way to improve your employment prospects. This internship can be a great way to get your foot in the door of success with a prestigious or desirable Organization.As career in ethical hacking is most in demand.

    ReplyDelete
  65. In this age of Technology advancement, computer and information technology have not only brought convenience to citizens in modern life but also for policemen & various Government officials of the nation to fight cybercrime through various modus operandi. Indian Cyber Army has been dedicated in fighting cyber crime, striving to maintain law and order in cyberspace so as to ensure that everyone remains digitally safe.Read more:- Information Security

    ReplyDelete
  66. This is a very wonderful post . thanks for sharing this post information. it is a very nice blog information.
    Mobile Repairing Institute in U.P
    Mobile Repairing Institute in Bihar

    ReplyDelete
  67. the blog is good and Interactive it is about Mulesoft Developer it is useful for students and Mulesoft Developers for more updates on Mulesoft mulesoft Online course hyderabad

    ReplyDelete
  68. We at Webleads provide SEO Services involves in digital marketing process for your website to become more search engine friendly. Webleads offers SEO services driven by a strategic approach to ensure that your website appears on the first page of Google Search rankings and also appears prominently among other search engines as per the location of your business. For location-based businesses, our SEO company can help you with Local SEO services.
    best seo in delhi
    top seo companies in delhi
    seo company in delhi
    local seo company in delhi
    seo services packages
    seo service providers

    ReplyDelete
  69. If you're searching for best seo company in Delhi then your search ends here. Webleads is really a Genuine SEO Company positioned in Delhi where we do natural seo by moral way and very simple fundamentals of search experience optimization. Our SEO Expert gives best SEO service in Delhi Delhi NCR (Gurgaon) and other all brilliant towns in India and across the world which make your over all web presence more strong and helps to increase your organic traffic.
    best seo services in delhi
    seo services company in delhi
    seo company delhi
    seo agency in delhi
    best seo company in delhi
    top seo company in delhi

    ReplyDelete
  70. The information which you have provided is very good. It is very useful who is looking for Java online course Bangalore

    ReplyDelete