Hi Konstantinos,

Writing headers to files is currently not supported by the underlying
TextOutputFormat.
You can implement a custom OutputFormat by extending TextOutputFormat to
add this functionality.

Best, Fabian

Am Fr., 1. Feb. 2019 um 16:04 Uhr schrieb Papadopoulos, Konstantinos <
konstantinos.papadopou...@iriworldwide.com>:

> Hi all,
>
>
>
> I am trying to produce a file from a dataset using the
> writeAsFormattedText method (e.g., data.writeAsFormattedText(filename,
> writeMode, formatter)).
>
> Is there any easy way to add a header to the file produced?
>
>
>
> Thanks in advance,
>
> Konstantinos
>

Reply via email to