Create filename in a loop

I’m not completely new to Knime but quite without experience in workflow variables. I created a loop and now I want to store the results for every loop in a file (to be written is a table).
I tried to use the “create filename” node with the node “table writer”, but up to now without success. Can anyone give me a hint how to get the job done?

Mike

Hi @mgamer and welcome to the KNIME community forum,

For the file name you can use the “currentIteration” variable created by the loop start (or loop_value created by Interval loop). If you want to create a more meaningful file name, use the String Manipulation (Variable) and the join() function to create a string using the variables you already have.

To read more about flow variables in KNIME, you can take a look at this blog post:
https://blog.statinfer.com/knime-spirits-at-your-service/

:blush:

5 Likes

Hi there @mgamer,

Welcome to KNIME Community!

Take a look at this example how to use Create File Name node in a loop in order to write down results in every iteration.

Br,
Ivan

4 Likes

Thank you for the helpful hints. Now I got it to work :slight_smile:

3 Likes

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.