# Adding Column to output file

**URL:** <https://forum.knime.com/t/adding-column-to-output-file/49347>\
**Category:** KNIME Analytics Platform\
**Created:** [November 24, 2022, 3:32pm UTC](https://forum.knime.com/t/adding-column-to-output-file/49347 "2022-11-24T15:32:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tyler123](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/t/fbc32d/32.png) [@tyler123](https://forum.knime.com/u/tyler123)\
**Post date:** [November 24, 2022, 3:32pm UTC](https://forum.knime.com/t/adding-column-to-output-file/49347/1 "2022-11-24T15:32:06Z")

</div>

Hello,

In my input file called “Account ID” I would like that column to display in my output file. Is there a node for this?

Thanks.

---

<div class="post-metadata">

**Author:** ![mlauber71](https://forum-cdn.knime.com/user_avatar/forum.knime.com/mlauber71/32/73590_2.png) [@mlauber71](https://forum.knime.com/u/mlauber71)\
**Post date:** [November 24, 2022, 5:14pm UTC](https://forum.knime.com/t/adding-column-to-output-file/49347/2 "2022-11-24T17:14:54Z")

</div>

@tyler123 wit a lot of file reader nodes you can directly attach a column containing the (full) path of the file you have just loaded

 ![image](https://forum-cdn.knime.com/uploads/default/original/3X/f/1/f1031777800007ba6649a095c278c5282a875187.png)

Then you can store the (selected) file information from your node in a Flow Variable and use that later

 ![image](https://forum-cdn.knime.com/uploads/default/original/3X/3/b/3ba72b52c7b866a586eec4f9cae117883ffd3c44.png)

For example to extract the ‘pure’ file name and extension. You could also use this to gather other informations.

 ![image](https://forum-cdn.knime.com/uploads/default/original/3X/8/a/8a72caf603536c2ddb0751750e20b8ef61c153de.png)

Then you can store that as a new constant column

![image](https://forum-cdn.knime.com/uploads/default/original/3X/6/c/6cd318b985d87102ea0e9d5833e9780bdcd78b5e.png)

> **[store the selected Path as column and the file name only – mlauber71](https://hub.knime.com/mlauber71/spaces/Public/latest/kn_example_file_name_as_column~WJuq9A4IKB1Fw4xY)**
>
> store the selected Path as column and the file name only

---

<div class="post-metadata">

**Author:** ![system](https://forum-cdn.knime.com/uploads/default/original/1X/ab3ccf34482a0329361734a18199390177204f15.png) [@system](https://forum.knime.com/u/system)\
**Post date:** [February 22, 2023, 5:15pm UTC](https://forum.knime.com/t/adding-column-to-output-file/49347/3 "2023-02-22T17:15:36Z")

</div>

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