I have an input file with the following structure:

INPUT:

&indata
run          = 1         ,
in_sswf_rk   = 0         ,
in_sswf_sp   = 200       ,
kount_st     = 150         ,
kount_end    = 150       ,
kappa_C      = 0.12      ,
......

How can I read all these parameters in Julia into global constants? I am 
saying constants because I read that performance-wise it is not a good idea 
to define global variables. Also, can I give each constant a specific type 
(float, int)?

PS: I guess in Python I would be using the ConfigParser module.

Tnx!

Reply via email to