{"id":39420,"date":"2016-11-26T17:46:00","date_gmt":"2016-11-26T23:46:00","guid":{"rendered":"https:\/\/kenscourses.com\/tc101fall2016\/?guid=af641972b1f2090b3e190a34f93aaec6"},"modified":"2016-11-26T17:54:24","modified_gmt":"2016-11-26T23:54:24","slug":"programming-and-hobbies-2016-11-26-174600","status":"publish","type":"post","link":"https:\/\/kenscourses.com\/tc101fall2016\/syndicated\/programming-and-hobbies-2016-11-26-174600\/","title":{"rendered":"Programming and Hobbies 2016-11-26 17:46:00"},"content":{"rendered":"<p class=\"syndicated-attribution\"><em> --Originally published at <a href=\"http:\/\/christa-vanilla98.blogspot.com\/2016\/11\/reading-and-writing-of-text-files-este.html\"><a href=\"http:\/\/christa-vanilla98.blogspot.com\/\">Programming and Hobbies<\/a><\/a><\/em><br \/><\/p>\n<div style=\"text-align: center;\"><span style=\"color: #e06666;\"><u><span style=\"font-family: &quot;trebuchet ms&quot; , sans-serif;\">Reading and writing of text files<\/span><\/u><\/span><\/div><br \/><br \/><span style=\"font-family: &quot;trebuchet ms&quot; , sans-serif;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\">Este es el \u00faltimo mastery topic que me hizo falta publicar (sorry).<\/span><\/span><\/span><br \/><br \/><span style=\"font-family: &quot;trebuchet ms&quot; , sans-serif;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\">Primero que nada<span style=\"color: #e06666;\">, <span style=\"color: #e06666;\">lo que haremos a continuaci\u00f3n nos permitir\u00e1 poder <span style=\"color: #e06666;\">crear y leer archivos que se <span style=\"color: #e06666;\">encuentran en nuestra computadora sin la necesidad de copiar y pegar toda la informaci\u00f3n en forma de c\u00f3digo<span style=\"color: #e06666;\">.<\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><br \/><br \/><span style=\"font-family: &quot;trebuchet ms&quot; , sans-serif;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\">Hay diferentes par\u00e1metros <span style=\"color: #e06666;\">que se pueden utilizar<span style=\"color: #e06666;\">, cada uno es representado por una o dos letras y un signo&nbsp;+ que propo<span style=\"color: #e06666;\">rciona m\u00e1s opciones.<\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><br \/><span style=\"font-family: &quot;trebuchet ms&quot; , sans-serif;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\">&nbsp;<\/span><\/span><\/span> <\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><br \/><span style=\"color: black;\"><a href=\"https:\/\/2.bp.blogspot.com\/-RuWIO1eoDh0\/WDoaYwuQ_DI\/AAAAAAAAEcg\/8ZE8wPxmGj4eBNlfSBFAzxP7HM3DL1EsgCLcB\/s1600\/reading_text.jpg\" imageanchor=\"1\" style=\"clear: right; float: right; margin-bottom: 1em; margin-left: 1em;\"><img border=\"0\" height=\"198\" src=\"https:\/\/2.bp.blogspot.com\/-RuWIO1eoDh0\/WDoaYwuQ_DI\/AAAAAAAAEcg\/8ZE8wPxmGj4eBNlfSBFAzxP7HM3DL1EsgCLcB\/s640\/reading_text.jpg\" width=\"640\" \/><\/a><span style=\"font-family: &quot;trebuchet ms&quot; , sans-serif;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"> <span style=\"color: #e06666;\">&nbsp;<\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><br \/><span style=\"font-family: &quot;trebuchet ms&quot; , sans-serif;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\">Ahora les dar\u00e9 una explicaci\u00f3n r\u00e1pida y varios ejemplos de como <span style=\"color: #e06666;\">crear y leer archivos dentro de nuestro<span style=\"color: #e06666;\">s c\u00f3digos.<\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><br \/><br \/><span style=\"font-family: &quot;trebuchet ms&quot; , sans-serif;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\">Primero le damos un n<span style=\"color: #e06666;\">ombre a <span style=\"color: #e06666;\">nuestra \"funci<span style=\"color: #e06666;\">\u00f3n\", despu\u00e9s anotamos = open().<\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><br \/><span style=\"font-family: &quot;trebuchet ms&quot; , sans-serif;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\">Dentro de l<span style=\"color: #e06666;\">os corchetes queda entre comillas <\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><span style=\"font-family: &quot;trebuchet ms&quot; , sans-serif;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\">\u2019<\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><span style=\"font-family: &quot;trebuchet ms&quot; , sans-serif;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\">el nombre de nuestro archivo.txt<\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><span style=\"font-family: &quot;trebuchet ms&quot; , sans-serif;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\">\u2019 , <\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><span style=\"font-family: &quot;trebuchet ms&quot; , sans-serif;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\">\u2019<span style=\"color: #e06666;\">nuestro tipo de par\u00e1metro<\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><span style=\"font-family: &quot;trebuchet ms&quot; , sans-serif;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\">\u2019<\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><br \/><br \/><div class=\"separator\" style=\"clear: both; text-align: center;\"><span style=\"color: black;\"><a href=\"https:\/\/3.bp.blogspot.com\/-lfeRicu7wsM\/WDoejBYGwVI\/AAAAAAAAEcs\/e51lt-8KYGUrxJ2Tk6-n27KM__wcMTwfgCLcB\/s1600\/Captura%2Bde%2Bpantalla%2B2016-11-26%2B17.38.44.png\" imageanchor=\"1\" style=\"margin-left: 1em; margin-right: 1em;\"><img border=\"0\" height=\"360\" src=\"https:\/\/3.bp.blogspot.com\/-lfeRicu7wsM\/WDoejBYGwVI\/AAAAAAAAEcs\/e51lt-8KYGUrxJ2Tk6-n27KM__wcMTwfgCLcB\/s640\/Captura%2Bde%2Bpantalla%2B2016-11-26%2B17.38.44.png\" width=\"640\" \/><\/a><\/span><\/div><span style=\"font-family: &quot;trebuchet ms&quot; , sans-serif;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\">&nbsp;<\/span><\/span> <\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><br \/><span style=\"font-family: &quot;trebuchet ms&quot; , sans-serif;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: #e06666;\"><span style=\"color: black;\"><span style=\"color: #e06666;\">*Importante* Chicos, si<\/span> de<\/span><span style=\"color: #e06666;\"><span style=\"color: black;\">sean <\/span><span style=\"color: #e06666;\"><span style=\"color: black;\">tener una <span style=\"color: #e06666;\">idea<\/span> m<\/span><span style=\"color: #e06666;\"><span style=\"color: black;\">\u00e1s <span style=\"color: #e06666;\">clara<\/span> y atractiva visualmente sobre los par\u00e1metros pueden visitar el siguiente blog de un compa\u00f1ero de TC101: <\/span><a href=\"https:\/\/quirinosawesomeprojects.wordpress.com\/2016\/11\/23\/reading-and-writing-of-text-files\/\" >Quirino's Blog<\/a><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><br \/><br \/><br \/><div class=\"separator\" style=\"clear: both; text-align: center;\"><span style=\"color: black;\"><a href=\"https:\/\/4.bp.blogspot.com\/-TD0NxVMIlUg\/WDofobDlfdI\/AAAAAAAAEc0\/AKje11cMNWMHUnchQMwdLbkBO5r4FNiBgCLcB\/s1600\/thnk.gif\" imageanchor=\"1\" style=\"margin-left: 1em; margin-right: 1em;\"><img border=\"0\" height=\"318\" src=\"https:\/\/4.bp.blogspot.com\/-TD0NxVMIlUg\/WDofobDlfdI\/AAAAAAAAEc0\/AKje11cMNWMHUnchQMwdLbkBO5r4FNiBgCLcB\/s640\/thnk.gif\" width=\"640\" \/><\/a><\/span><\/div>","protected":false},"excerpt":{"rendered":"<p>&#8211;Originally published at Programming and Hobbies Reading and writing of text filesEste es el \u00faltimo mastery topic que me hizo falta publicar (sorry).Primero que nada, lo que haremos a continuaci\u00f3n nos permitir\u00e1 poder crear y leer archivos que se encuentran en nuestra computadora sin la necesidad de copiar y pegar toda la informaci\u00f3n en forma &hellip; <a href=\"https:\/\/kenscourses.com\/tc101fall2016\/syndicated\/programming-and-hobbies-2016-11-26-174600\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Programming and Hobbies 2016-11-26 17:46:00<\/span><\/a><\/p>\n","protected":false},"author":23,"featured_media":39421,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,4],"tags":[],"class_list":["post-39420","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blogs","category-syndicated"],"_links":{"self":[{"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/posts\/39420","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/users\/23"}],"replies":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/comments?post=39420"}],"version-history":[{"count":4,"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/posts\/39420\/revisions"}],"predecessor-version":[{"id":40111,"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/posts\/39420\/revisions\/40111"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/media\/39421"}],"wp:attachment":[{"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/media?parent=39420"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/categories?post=39420"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/tags?post=39420"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}