Skip to content
Snippets Groups Projects
Commit de7b65b6 authored by rswindell's avatar rswindell
Browse files

Example use of load/cnflib.js (and cnfdefs.js)

parent 46c19d7a
Branches
Tags
No related merge requests found
// $Id$
// Example use of cnflib.js
// Changes to the objects may be written back to the files using cnf.write()
// e.g.: cnflib.write("xtrn.cnf", undefined, xtrn_cnf);
var cnflib = load({}, 'cnflib.js');
print("msgs_cnf");
var msgs_cnf = cnflib.read("msgs.cnf");
if(msgs_cnf)
print(JSON.stringify(msgs_cnf, null, 4));
print("xtrn_cnf");
var xtrn_cnf = cnflib.read(system.ctrl_dir + "xtrn.cnf");
if(xtrn_cnf)
print(JSON.stringify(xtrn_cnf, null, 4));
print("file_cnf");
var file_cnf = cnflib.read(system.ctrl_dir + "file.cnf");
if(file_cnf)
print(JSON.stringify(file_cnf, null, 4));
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment