<div dir="ltr">Please make sure to add <a href="mailto:tutor@python.org">tutor@python.org</a> to the To: field so everyone gets to read your answer. Also, please don’t post in HTML.<br><div class="gmail_extra"><br><br><div class="gmail_quote">
On Fri, Aug 29, 2014 at 7:39 PM, Richard Dillon <span dir="ltr"><<a href="mailto:dillonrw@comcast.net" target="_blank">dillonrw@comcast.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div style="word-wrap:break-word">Still getting an error message.<div><br><div><img height="651" width="779" src="cid:26CDF36B-3600-46A6-846C-872E87AA7D7C@hsd1.wa.comcast.net."></div><div><div class="h5"><div><br></div></div>
</div></div></div></blockquote></div><div><br></div><div>It is trying to open a file named 'my_file' on your desktop, which does not exist. In this case, you want:</div><div><br></div><div><span style="font-family:arial,sans-serif;font-size:13px">infile = open('/Users/richarddillon/</span><span style="font-family:arial,sans-serif;font-size:13px">Desktop/' + my_file, 'r')</span><br>
</div><div><br></div><div>This concatenates (puts together) the string with the path to your desktop and the variable my_file.</div><div><br></div><div>Also, .rtf files are not going to work well with Python, you need a plain text file (.txt).</div>
<div><br></div>-- <br>Chris “Kwpolska” Warrick <<a href="http://chriswarrick.com/" target="_blank">http://chriswarrick.com/</a>><br>PGP: 5EAAEA16<br>stop html mail | always bottom-post | only UTF-8 makes sense
</div></div>