testing - how to fetch a data from one file location and to run using tcl code -


How to get data from a file location in TCL and use that data to use TCL code For example, there is a config file in Folder 1, I want to get the information of the config file and I want to execute the existing information,

interp alias ):

  # reference set I [Interp create-safe] # Set a path to specify Let the Master know that to do exactly what the # interrupt alias $ I configures {} records the configuration records record configurations {puts " Conn with $ args Figured "} # Evaluate scripts (note that [source] is hidden by default) $ i invokehidden source /the/path/to/the/file.tcl # reference in the reference destroyed $ i  

If the file is not Tcl code, you have to parse it. This is a very complicated thing, so that before we can answer we have to know the format of the file.


Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -