JuliaIO / ConfParser.jl

Julia package for parsing configuration files
Other
44 stars 17 forks source link

Update ConfParser.jl #5

Closed rnavarromal closed 8 years ago

rnavarromal commented 9 years ago

[+] In function ConfParse(filename, syntax =""): _fh = _open_fh(filename, "r") moved outside if-statement because if sytax != "", then _fh will be not defined.

[+] In function parse_conf!(s): Added close(s._fh), because _fh is not needed anymore for reading

[+] In function save!(s,filename): Added close(s._fh). If not closed, filename appears as empty until the julia-session finishes.