I am trying to open 1 file for reading and another for writing, and ensure that if something goes wrong I always try to close the input and output ports. I thought there would be a compact structure for this but the code I came up with seems quite verbose:
Thanks @shawnw. I was hoping there is already something like this built into racket or the standard library. I can roll my own but wanted to check if this problem has already been solved and I just don't know about it