java - Read file from dynamic file location using talend -


i using talend studio data integration v5.3.1.

in created job filedelimited. have uploaded csv file , reading file.

i exported job zip file, extracted it, , run sh file in terminal. , reading file , displaying in console.

now want read different file in other file location. possible read different file running same shell script? if so, have change?

you can using context variables, , context load. create configuration file have required input location path , other details.

you have different files on different location , wanted upload files without file parsing right? if

first create configuration file 2 parameters.

filepath|filename \\folderone\|file1.txt \\foldertwo\|file2.txt 

create 2 context variables in context named filepath & filename , used tcontextload load above configuration details context variable

used these variables provide file , path @ runtime configuration.


Comments