// Config file
// using section as windows ini standard, but use some non-standart
// only to demonstrate the features.
// RECOMEND to use only the standard data type.
// config file standard is like this??
// unix:
// Normally is the sequence of lines in the form
// [variable]=[values]
// where [variable] is the name of variable (will not use without names)
// that does not contain spaces and [values] is the one value, or list of values
// separated by space.
// will use '\' as line wrapping (to break the long line)
// note that the dataio is not token based and multiple space is treated as
// multiple empty column (if use space as column separator)
// Thus, the empty column clearing is required inside of program.
// The section is not used
// The comment line marker is '#' ??
//
// windows:
// all data list is the form
// [section]
// [variable 1]=[value 1]
// ...
// [variable n]=[value n]
// where [section] is the section name delimited by
// '[' and ']' (can not define variables outside of section),
// [variable x] is variable name (can not use without names,
// and [value x] is one value or values separated by comma (',').
// comment line is ';' ??
// how to make line wrapping??
// the comment line will not marked as '\\' that is C++ and java standard
// use '#' for unix like, and ';' for windows like
// this is outside section
// standard for unix, and invarid for windows
prog-name=myprog
// defining section
// invalid for unix and required by windows
[files] // starting section
file-name=myfile // ok for unix and windows
// space separated values
// standard of unix. The windows use comma (',') separated
default-path=./ /usr/local/ ./mydir
// will use delimited string as name??
"default file type"=".bak"
// changing the section. standard for windows
// unix do not use section
[process] // new section
12 // number of runs
print-log-on
max-iter=1000
ask-to-user=false
// the empty section will not used by standard of windows.
// unix will not use too (because will not use section)
[] // empty section ends section. it's not the win ini standard
print-comment-off // it is outside section
1.2.8.1 written by Dimitri van Heesch,
© 1997-2001