One Star lkv
One Star

Read File line by line and create spereate files

Talend version 5.6
 I have trying to get this work from a big piece of my requirement.  I need to read a file line by line and create seperate file for each line with out any condition/unique/filter..
eg :   user_file.txt
        User_ID
         user1
         user2
         user3
 So my file has one  column "User_Id" and i just need to read the file and create 3 files. I have only one column, nothing to compare or filter.
 user_1.txt
 user_2.txt
 user_3.txt
     I some the post which has the iterateToflow and filter row.. but it is not working for me.. So any help to resolve this would be greatly appreciated.
3 REPLIES
Moderator

Re: Read File line by line and create spereate files

Hi,
The actual output should be one file with one line or one file with all lines?
Could you please take a look at my screenshots to see if it is satisfying your needs?
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
One Star lkv
One Star

Re: Read File line by line and create spereate files

Yes, This is what i am expecting. Thanks for your support.
Moderator

Re: Read File line by line and create spereate files

Hi,
Thanks for your feedback. Could you please mark this topic as resolved?
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.