cancel
Showing results for 
Search instead for 
Did you mean: 

How can we put contents of a text file into a 'Field' in the target file?

Former Member
0 Kudos

Hi Experts,

I am new to XI, so only elaborate answers would help me

This is the specific requirement i want;

There is a 'source text file' which is a collection of 1000+ records, I want to make a 'target file' which is a combination of 2 fields, one field will be the dynamically generated name for the target file and the other field will be the whole 'source file' content.

Generation of the first field is done...

Is there anyway by which I can get in the whole content of the source file into a field in the target file?

Thanks in Advance

Thomas

Accepted Solutions (1)

Accepted Solutions (1)

Shabarish_Nair
Active Contributor
0 Kudos

The easiest way is as follows;

1. read the file without FCC.

2. use a java mapping

3. the inputsteam will be your whole file.

4. convert to string and put it in one node.

5. use dynamic cofiguration in this mapping - get the filename and do as required passing it to another node.

Answers (0)