Read data from external file

Its is easy to read data from the external file rather than putting inside the main script.

By giving the correct file path for the data, script can read it without crashes.
Eg:
Assume that we need to get data from the text file named area_1867_2016 which located in /local/data/SL/FECT/cm/Tea

Relevant script is 
file:
formatted
/name (/local/data/SL/FECT/cm/Tea/area_1867_2016.txt) def

:file


Script with the data                                                                      Script that reads external files
            
Local Data Library link for above example : http://10.10.10.110/SOURCES/.SL/.FECT/chalani/Tea  
         

Comments

Popular posts from this blog

Set-Up Local data Library

Upload data to the Data Library through Ingrid scripts

Adding data to the Data library