Add a header in file UniversalDataWriter

Hi all,

I want to write a static header row as the first line of the output text file which will be followed by the actual data rows. I’m using UniversalDataWriter. Any ways to achieve this?

Thanks,
Sreehareesh

Hi Sreehareesh,

There is a property named “Write field names” in UniversalDataWriter which serves for exactly this purpose.

Regards,

Hi Lubos,

Thanks for the quick response.

Yes it works partially. Checking “Write field names” check box gets the fields added to the output file header. But what I exactly need is a static header like,

insert user name;age

When using “Write field names”, it just writes name;age as the header.
Please let me know if there are any ways to achieve this

Thanks,
Sreehareesh

Of course, you can create your header in a few partial steps and then save the data records in the next graph phase, using property Append set to true. Please see my example graph.
udw.grf
Regards,

Hi Lubos,

This sounds to be a cool solution. Thanks a lot for the help.

Thanks & Regards,
Sreehareesh