gdata.io.handleScriptLoaded({"version":"1.0","encoding":"UTF-8","feed":{"xmlns":"http://www.w3.org/2005/Atom","xmlns$openSearch":"http://a9.com/-/spec/opensearchrss/1.0/","xmlns$gd":"http://schemas.google.com/g/2005","xmlns$georss":"http://www.georss.org/georss","xmlns$thr":"http://purl.org/syndication/thread/1.0","xmlns$blogger":"http://schemas.google.com/blogger/2008","id":{"$t":"tag:blogger.com,1999:blog-8285804830535272268"},"updated":{"$t":"2023-07-30T02:11:08.392-07:00"},"category":[{"term":"C Programs"},{"term":"Pointers"},{"term":"string"},{"term":"Array"},{"term":"Learn C"},{"term":"Fundamental"},{"term":"Pattern"},{"term":"control sturctures"},{"term":"searching and sorting"},{"term":"recursion"},{"term":"List of C Programs"},{"term":"Structures"},{"term":"C Turbo Compiler"},{"term":"File Handling"},{"term":"Contents"},{"term":"Common Programming Error"},{"term":"functions"},{"term":"Dynamic memory allcation"}],"title":{"type":"text","$t":"C Programming Tutorial"},"subtitle":{"type":"html","$t":"It is a blog about c programming. Here we provide c programs and tutorials to enhance your skills."},"link":[{"rel":"http://schemas.google.com/g/2005#feed","type":"application/atom+xml","href":"https://www.blogger.com/feeds/8285804830535272268/posts/default/-/File+Handling?alt\u003djson-in-script\u0026max-results\u003d50"},{"rel":"self","type":"application/atom+xml","href":"https://www.blogger.com/feeds/8285804830535272268/posts/default/-/File+Handling?alt\u003djson-in-script\u0026max-results\u003d50"},{"rel":"alternate","type":"text/html","href":"http://www.comp-psyche.com/search/label/File%20Handling"},{"rel":"hub","href":"http://pubsubhubbub.appspot.com/"}],"author":[{"name":{"$t":"Mantu Kumar"},"uri":{"$t":"https://www.blogger.com/profile/02897308282659594376"},"email":{"$t":"noreply@blogger.com"},"gd$image":{"rel":"http://schemas.google.com/g/2005#thumbnail","width":"35","height":"35","src":"//www.blogger.com/img/blogger_logo_round_35.png"}}],"generator":{"version":"7.00","uri":"https://www.blogger.com","$t":"Blogger"},"openSearch$totalResults":{"$t":"1"},"openSearch$startIndex":{"$t":"1"},"openSearch$itemsPerPage":{"$t":"50"},"entry":[{"id":{"$t":"tag:blogger.com,1999:blog-8285804830535272268.post-6658161019040712282"},"published":{"$t":"2013-12-03T04:43:00.000-08:00"},"updated":{"$t":"2014-04-16T01:11:11.067-07:00"},"category":[{"scheme":"http://www.blogger.com/atom/ns#","term":"Common Programming Error"},{"scheme":"http://www.blogger.com/atom/ns#","term":"File Handling"},{"scheme":"http://www.blogger.com/atom/ns#","term":"Learn C"}],"title":{"type":"text","$t":"COMMON PROGRAMMING ERROR - FILE HANDLING"},"content":{"type":"html","$t":"\u003cdiv dir\u003d\"ltr\" style\u003d\"text-align: left;\" trbidi\u003d\"on\"\u003e\u003ctitle\u003eCOMMON PROGRAMMING ERRORS - FILE HANDLING\u003c/title\u003e\u003cbr /\u003e\n\u003cdiv style\u003d\"text-align: left;\"\u003e\u003c/div\u003e\u003cul style\u003d\"text-align: left;\"\u003e\u003cli style\u003d\"text-align: justify;\"\u003eOpening an existing file for \u003cspan style\u003d\"color: lime;\"\u003ewriting ( \"w\") \u003c/span\u003ewhen in fact, the user wants to preserve the file, discards the contents of file without warning.\u003c/li\u003e\n\u003c/ul\u003e\u003cul style\u003d\"text-align: left;\"\u003e\u003cli style\u003d\"text-align: justify;\"\u003eForgetting to open a file before attempting to \u003cspan style\u003d\"color: lime;\"\u003ereference\u003c/span\u003e it in a program is a \u003cspan style\u003d\"color: lime;\"\u003elogic error.\u003c/span\u003e\u003c/li\u003e\n\u003c/ul\u003e\u003cul style\u003d\"text-align: left;\"\u003e\u003cli style\u003d\"text-align: justify;\"\u003eopening a \u003cspan style\u003d\"color: lime;\"\u003enonexistent file\u003c/span\u003e for reading is an error.\u003c/li\u003e\n\u003c/ul\u003e\u003cul style\u003d\"text-align: left;\"\u003e\u003cli style\u003d\"text-align: justify;\"\u003eOpening a file for reading or writing without having been granted the\u003cspan style\u003d\"color: lime;\"\u003e appropriate access rights\u003c/span\u003e to the file ( this is \u003cspan style\u003d\"color: lime;\"\u003eoperating-system dependent\u003c/span\u003e) is an error.\u003c/li\u003e\n\u003c/ul\u003e\u003cul style\u003d\"text-align: left;\"\u003e\u003cli style\u003d\"text-align: justify;\"\u003eOpening a file for writing when \u003cspan style\u003d\"color: lime;\"\u003eno space\u003c/span\u003e is available is a\u003cspan style\u003d\"color: lime;\"\u003e runtime error.\u003c/span\u003e\u003c/li\u003e\n\u003c/ul\u003e\u003cul style\u003d\"text-align: left;\"\u003e\u003cli style\u003d\"text-align: justify;\"\u003eOpening a file in \u003cspan style\u003d\"color: lime;\"\u003ewrite mode (\"w\")\u003c/span\u003e when it should be opened in update \u003cspan style\u003d\"color: lime;\"\u003emode (\"r+\")\u003c/span\u003e causes the contents of the file to be \u003cspan style\u003d\"color: lime;\"\u003ediscarded\u003c/span\u003e.\u003c/li\u003e\n\u003c/ul\u003e\u003cdiv style\u003d\"text-align: justify;\"\u003e\u003cspan style\u003d\"color: yellow;\"\u003eMore Informative Posts\u003c/span\u003e\u003c/div\u003e\u003cul style\u003d\"text-align: justify;\"\u003e\u003cli\u003e\u003cspan style\u003d\"color: yellow;\"\u003e\u003ca href\u003d\"http://www.comp-psyche.com/2013/11/learn-C.html\"\u003eComplete List Of Learn C\u003c/a\u003e\u003c/span\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href\u003d\"http://www.comp-psyche.com/2013/11/common-programming-error-complete-list.html\"\u003eCommon Programming Error - Complete List\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href\u003d\"http://www.comp-psyche.com/2013/11/common-programming-errors.html\"\u003eCommon Programming Error - Fundamentals\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href\u003d\"http://www.comp-psyche.com/2013/06/common-programming-errors_25.html\"\u003eCommon Programming Error - Control Structures\u003c/a\u003e\u003c/li\u003e\n\u003c/ul\u003e\u003c/div\u003e"},"link":[{"rel":"replies","type":"application/atom+xml","href":"https://www.comp-psyche.com/feeds/6658161019040712282/comments/default","title":"Post Comments"},{"rel":"replies","type":"text/html","href":"https://www.comp-psyche.com/2013/11/common-programming-error-file-handling.html#comment-form","title":"0 Comments"},{"rel":"edit","type":"application/atom+xml","href":"https://www.blogger.com/feeds/8285804830535272268/posts/default/6658161019040712282"},{"rel":"self","type":"application/atom+xml","href":"https://www.blogger.com/feeds/8285804830535272268/posts/default/6658161019040712282"},{"rel":"alternate","type":"text/html","href":"https://www.comp-psyche.com/2013/11/common-programming-error-file-handling.html","title":"COMMON PROGRAMMING ERROR - FILE HANDLING"}],"author":[{"name":{"$t":"Mantu Kumar"},"uri":{"$t":"https://www.blogger.com/profile/02897308282659594376"},"email":{"$t":"noreply@blogger.com"},"gd$image":{"rel":"http://schemas.google.com/g/2005#thumbnail","width":"35","height":"35","src":"//www.blogger.com/img/blogger_logo_round_35.png"}}],"thr$total":{"$t":"0"}}]}});