<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Feb 5, 2015 at 10:30 PM, Geoffrey Bays <span dir="ltr"><<a href="mailto:charioteer7@gmail.com" target="_blank">charioteer7@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div>Francesco:<br><br></div>Unfortunately, using withFile I get the same error as before with handles: hPutStr: illegal operation (handle is closed).<br><br></div></div></div></blockquote><div><br></div><div>This error suggests you're forgetting to reopen your file in WriteMode once withFile closed it (you <i>did </i>read the documentation of withFile ?). Trying to write on a closed handle is an exercise in futility.<br><br>-- <br></div><div>Jedaï<br></div></div><br></div></div>