<div dir="ltr"><br><br><div class="gmail_quote">On Tue, Jul 22, 2008 at 10:40 AM, Bryan Fodness &lt;<a href="mailto:bryan.fodness@gmail.com">bryan.fodness@gmail.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div dir="ltr"><div>I would like to check to see if the data files are good, readable, and exist.&nbsp; I have checked to see if they exist, but their is a possibility that the data file might be binary, and I would like to have a sys.exit for that as well.</div>


<div>&nbsp;</div>
<div>if not os.path.isfile(A_data) or not os.path.isfile(B_data)\<br>&nbsp;&nbsp; or not os.path.isfile(C_data) or not os.path.isfile(D_data):<br>&nbsp;&nbsp;&nbsp; sys.exit(14)</div></div></blockquote></div><br>Am I wrong in thinking that /all/ files are stored as binary? And then when python opens them, it automagically opens them in a more readable format, unless you open them in binary with &quot;rb&quot; or similar command?<br>
<br>-Wayne<br><br>-- <br>To be considered stupid and to be told so is more painful than being called gluttonous, mendacious, violent, lascivious, lazy, cowardly: every weakness, every vice, has found its defenders, its rhetoric, its ennoblement and exaltation, but stupidity hasn't. - Primo Levi
</div>