I'm attempting to learn how to use the "with....as" statement in python. <br><br>I've read the documentation and also a few tutorials but I still cannot understand the concept. or how this is normally used. Can someone please write an example or 2 of simple ways to use the "with statement". <br>
<br>I understand in java the try...catch...finally block so maybe someone can point out the relationship between them.<br><br>thanks.<br>