Hi All, I am creating a text base user-input interface for an optimization framework I am developing in Julia. I am relatively new to Julia and have only previously programmed in Fortran (mostly) and in C.
I am planning to read in/out my variables and their corresponding value (which can by any type) as key/value pairs of a Dict. This is equivalent to Fortran's NAMELIST feature (in a crude way). As an example, I can easily write out a Dict to a text file as below: writedlm("test.txt",dd,"=") where dd is a example Dict: dd = Dict([("A", 0), ("B", false),("C", [199,199,199]) ]) But when I try to do the inverse (read back the Dict) using the readdlm command , I get the following error. f = open("test.txt" readdlm(f,dd) ERROR: MethodError: `readdlm` has no method matching readdlm(::IOStream, :: Dict{ASCIIString,Any}) I know, I can use "Regex" but I wanted to see if there is a more straight forward way of doing this. Any help is greatly appreciated. thanks, Nitin