[The code of this repo is not such a good idea as I first thought. I don't recommend to use it.]
Extension to Julia IO functions
Install this package with:
]add https://github.com/heliosdrm/IOExtension.jlUsing this package provides a function to open and apply a function to various files, and ensure that they are closed upon completion of the function. E.g.:
using IOExtension
openmultiple(("inputfile.txt", "outputfile.txt"), ("r", "w")) do (io_in, io_out)
# code to read from `io_in` (file stream of "inputfile.txt")
# and write on `io_out` (file stream of "outputfile.txt")
end