Skip to content
This repository was archived by the owner on Apr 9, 2023. It is now read-only.

heliosdrm/IOExtension.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

[The code of this repo is not such a good idea as I first thought. I don't recommend to use it.]

IOExtension.jl

Extension to Julia IO functions

Install this package with:

]add https://github.com/heliosdrm/IOExtension.jl

Using 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

About

Extension to Julia IO functions

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages