June 21, 2015

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);
}

93 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. 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
  7. Great blog posts, it really like to reading of this best education from with private school. Thanks for shared it, Oswaal Books

    ReplyDelete
  8. 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
  9. 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

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

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

    ReplyDelete
  12. 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
  13. 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
  14. Hello Guy
    Do you want to play game in casino online
    Please Click Here now
    thank you
    จีคลับ
    บอลออนไลน
    gclub online

    ReplyDelete
  15. 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
  16. 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

  17. 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
  18. 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
  19. Free easy & simple way to learn programming online we provide niit projects, assignments, cycle tests and much more..
    visit===>> http://foundjava.blogspot.in/

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

    ReplyDelete
  21. 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
  22. 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
  23. Your blog is very interesting I am a regular reader of your blog. Google Analytics Online Course

    ReplyDelete
  24. 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
  25. This is really true, lovely the post. Thanks for sharing.
    Visit us: Design Your Own Windbreaker

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

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

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

    ReplyDelete
  29. 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
  30. https://amanatbaba.blogspot.com/

    Visit my blog for Medical Information

    ReplyDelete
  31. 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
  32. 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
  33. This is such a great resource that you are providing and you give it away for free. I love seeing blog that understand the value. Im glad to have found this post as its such an interesting one! I am always on the lookout for quality posts and articles so i suppose im lucky to have found this! I hope you will be adding more in the future...
    real estate decentralized

    ReplyDelete
  34. Thank you for some other informative website. The place else may just I get that kind of information written in such a perfect method? I have a venture that I am simply now running on, and I’ve been at the glance out for such info.
    escrow blockchain

    ReplyDelete
  35. Thank for sharing the information Excellent article Learn Mulesoft Online

    ReplyDelete
  36. Hi there you may check Spectrum internet test fast free online by going here.

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

    ReplyDelete
  38. Benefits of reading your post. this may facilitate within the maintenance of our health.The daily routine can assist you lose weight quickly and safely.My life is completely reworked once I followed this diet.I feeling nice concerning myself.

    Herbalife in Chennai
    Herbalife Nutrition Products
    Herbalife Shakes
    Herbalife Weight Loss Shake
    Herbalife Weight Gain Shake

    ReplyDelete
  39. nice article! I found some useful information in your blog,it was awesome to read,thanks for sharing this great content to my vision,keep sharing.https://techenoid.com/

    ReplyDelete
  40. very informative ,thanks for sharing.looking forward to hear from you
    http://quincetravels.com

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

    ReplyDelete
  42. Did you hear there is a 12 word sentence you can speak to your partner... that will trigger intense feelings of love and instinctual attractiveness for you buried within his chest?

    Because hidden in these 12 words is a "secret signal" that triggers a man's impulse to love, please and look after you with his entire heart...

    12 Words Will Trigger A Man's Love Instinct

    This impulse is so hardwired into a man's mind that it will make him try harder than before to take care of you.

    Matter of fact, fueling this dominant impulse is absolutely essential to having the best possible relationship with your man that as soon as you send your man one of the "Secret Signals"...

    ...You will soon notice him open his soul and mind for you in a way he haven't experienced before and he'll perceive you as the one and only woman in the galaxy who has ever truly interested him.

    ReplyDelete
  43. You have done a great job on this article. I am pretty much pleased with your good work. You put really very helpful information. Thanks for the valuable information. Autoclicker

    ReplyDelete
  44. Locutores Baratos ofrece sus servicios de locución profesional al mejor precio. Accede a locutores profesionales y pídenos presupuesto. Solo en locutoresbaratos.com

    ReplyDelete
  45. Nice and good article. It is very useful for me to learn and understand easily. Thanks for sharing
    Mule 4 Training
    Best Mulesoft Online Training

    ReplyDelete
  46. https://www.wisdommaterials.com
    https://globalcompaniesinfo.com/
    https://wisdomallcodes.com/

    ReplyDelete
  47. Thank you for such valuable information about C program, if you would like to know more about best schools in Gurgaon, visit Schools In Gurgaon

    ReplyDelete
  48. buy webmail with bitcoin


    Offering Inbox webmail no limits with Payeer, Perfect Money and Bitcoin

    ReplyDelete
  49. Thank you for taking the time to publish this information very useful!
    Online Test Series

    ReplyDelete
  50. Ready to conquer the stock market? IBBM offers the best Stock Market Course In Ghaziabad. Gain comprehensive insights into stock trading, technical analysis, and investment strategies. Our expert instructors guide you towards becoming a successful trader. Join us to unleash your trading potential.

    ReplyDelete
  51. nice information sir ji, thanks for sharing with us,
    Industrial career course

    ReplyDelete
  52. Mahendra Singh Dhoni (born 7 July 1981), age 42yr (age of 2023), popularly known as MS Dhoni, is an Indian former cricketer who captained the Indian national team.
    Mahendra Singh Dhoni

    ReplyDelete
  53. The service known as 'buy YouTube subscribers Paytm' offers a seemingly convenient way for creators to purchase additional subscribers through the popular Indian payment gateway, Paytm. By promising a hassle-free transaction, the service targets YouTubers with the allure of fast and seemingly secure subscriber growth. Customers can simply use their Paytm wallet to buy packages of subscribers, with costs typically quoted in Indian rupees. Although presented as an easy method to pad subscriber counts, these purchased subscribers can be inactive or bot accounts which do not engage with the content or contribute to the channel's organic growth. Engaging in this practice not only violates YouTube's terms of service but also risks the integrity of the creator's brand and the authenticity of their audience. Real subscriber growth stems from meaningful content and genuine viewer interactions, aspects that cannot be bought through services like 'buy YouTube subscribers Paytm.
    https://www.buyyoutubesubscribers.in/

    ReplyDelete
  54. Delhi's ultramodern LASIK surgery centers offer a blend of advanced medical technology and seasoned ophthalmologists, ensuring premier vision correction. These facilities prioritize patient safety with strict adherence to international standards, while providing comprehensive care that begins with a detailed consultation and extends through attentive post-operative follow-up. The utilization of cutting-edge laser equipment allows for highly accurate corneal sculpting, dramatically enhancing patients' vision often within 24 hours. Economical pricing further elevates Delhi's status, making world-class LASIK surgery accessible to a diverse clientele and solidifying the city as a leader in refractive vision correction globally.
    https://www.visualaidscentre.com/lasik-eye-surgery/

    ReplyDelete
  55. In the pursuit of online prominence, 'buy YouTube subscribers cheap' services promise a budget-friendly path to increased viewership numbers. These deals are particularly tempting for content creators looking for a quick fix to enhance metrics and perceived channel authority. In stark contrast to YouTube's authentic engagement philosophy, this method trades capital for a deceptive spike in subscriber count. While it poses as a cost-effective solution, the consequences can be severe, including potential channel strikes and loss of reputation. Creators often find the cheap subscribers to be passive viewers who contribute little to active participation and overall channel vitality. The shortcut belies the challenging yet rewarding process of cultivating loyal viewers through quality content and real interactions.
    https://sites.google.com/view/buyytsubscribers/

    ReplyDelete
  56. Buy Real YouTube Views is a digital marketing service geared towards YouTubers in India, aiming to enhance the reach and impact of their online content. It utilizes strategic methods consistent with YouTube's guidelines to safely increase the view count on videos. By offering customized packages, this service caters to diverse needs, promising a boost in visibility that may lead to organic growth. While providing a measurable uptick in views, it underscores the necessity for creators to pair this initial momentum with captivating content. As a facilitator for short-term exposure, Buy Real YouTube Views operates as a potential catalyst, driving creators' content towards the echelons of viral trends. It is designed to seamlessly integrate with a comprehensive strategy for channel development, ensuring the purchased views lay the groundwork for genuine, long-term audience engagement.
    https://www.buyyoutubeviewsindia.in/

    ReplyDelete
  57. Cheapest web hosting in India redefines the digital horizon for emerging businesses, offering an unmatched blend of cost-efficiency and quality. With rock-bottom prices, entrepreneurs can plant their flags in the online world without financial burden. These plans frequently include essentials like steady uptime, basic security measures, and sufficient storage, ensuring a robust starting point for any website. The promise of 24/7 customer support provides a safety net for users, ensuring help is always at hand. Each package is crafted with an eye for scalability, permitting growth without the need to migrate to more expensive options prematurely. Tailor-made for the Indian market, the cheapest hosting options democratize online entry, making them ideal for startups and individuals on a shoestring budget.
    https://onohosting.com/

    ReplyDelete
  58. The practice of purchasing YouTube subscribers at low costs is a divisive strategy employed by some content creators seeking a quick boost in their channel's perceived popularity. This method, while affordable, primarily offers superficial growth, elevating subscriber numbers without a corresponding increase in real engagement or viewer interaction. The allure of this approach lies in its promise to enhance a channel's visibility and authority at first glance, potentially attracting more organic subscribers. However, this strategy carries significant risks, including the possibility of violating YouTube's terms of service, which strongly prohibits the manipulation of engagement metrics. Furthermore, channels that engage in this practice may find their credibility and authenticity questioned by both viewers and YouTube itself. Ultimately, while the immediate jump in subscriber count can seem advantageous, the long-term success of a YouTube channel hinges on authentic engagement and content quality, not artificially inflated numbers.
    https://buyyoutubesubscribersindia.weebly.com/

    ReplyDelete
  59. Buying 5-star Google reviews is a controversial yet sought-after strategy by businesses aiming to bolster their online reputation swiftly. This approach focuses on increasing a company's positive online feedback to improve its visibility and credibility on Google. When effectively managed, genuine 5-star reviews can significantly enhance consumer trust, drawing more attention and potentially elevating sales. However, the process is fraught with ethical concerns and requires strict adherence to Google's policies to avoid penalties or damage to the business's image. Ideally, these high ratings should originate from actual customer experiences, underscoring the importance of quality service and customer satisfaction. While the method promises rapid improvement in digital presence, it highlights the delicate balance between enhancing reputation and maintaining authentic and ethical business practices.
    https://www.seoexpertindelhi.in/buy-google-reviews/

    ReplyDelete
  60. Now hiring passionate and dedicated nursing professionals to join our bustling healthcare team in Singapore. This exciting opportunity is open to those with a keen interest in making a significant impact in a diverse and dynamic medical environment. Ideal candidates should have a specialization or interest in geriatric care, palliative care, or chronic disease management. We offer competitive salaries, comprehensive benefits, and robust opportunities for continuous education and career growth. Join us in a multicultural setting that values your skills and dedication, and become part of our commitment to healthcare excellence. Experience the richness of working in a country known for its high standards of patient care and advanced medical practices.
    https://dynamichealthstaff.com/nursing-jobs-in-singapore-for-indian-nurses

    ReplyDelete
  61. Elevate your business in the competitive Indian market with our premier service offering paid Google reviews. Gain an edge with authentic, positive feedback from verified profiles, tailor-made to highlight your brand's strengths. Our meticulously curated reviews not only improve your Google ranking but instill undeniable trust and credibility among prospective customers. Experience a surge in visibility and customer engagement as our expert team strategically boosts your online presence. With a focus on ethical practices and organic growth, we ensure each review reflects the true value of your business, driving success in the bustling digital landscape of India.
    https://www.sandeepmehta.co.in/buy-google-reviews/

    ReplyDelete
  62. Looking to boost your Spotify profile? Consider purchasing Spotify monthly listeners! This strategic investment can help increase your visibility and grow your fan base. With more monthly listeners, your tracks are more likely to be discovered by new audiences. Say goodbye to stagnant growth and hello to exponential success on Spotify. Buying monthly listeners is a smart way to jumpstart your music career and stand out in a crowded market. Increase your streams and attract more attention from both fans and industry professionals. Invest in your music's future by purchasing Spotify monthly listeners today. Don't miss out on the opportunity to elevate your music to new heights. Choose quality over quantity and watch your Spotify presence flourish with monthly listeners.
    https://www.spotifyfame.com/

    ReplyDelete
  63. Looking to amplify your Twitch presence? Consider the option to Buy Twitch Clip Views! With this strategic investment, you can enhance the visibility of your best moments and attract more engagement. Say goodbye to unnoticed clips and hello to a thriving streaming career with this savvy move. Don't miss out on the chance to boost your Twitch profile with purchased clip views. Experience the power of social proof as your clip views skyrocket. Invest wisely and watch your channel gain traction in no time. Take control of your success and Buy Twitch Clip Views today. Opt for quality views for a lasting impact on your streaming journey.
    https://twitchviral.com/

    ReplyDelete

C program to Read From a File

#include <stdio.h> #include <stdlib.h> void main() {     FILE *fptr;     char filename[15];     char ch;   ...