Hi,
We are able to generate output file with header by implementing FlatFileHeaderCallback and using delegate for FlatFileItemWriter.

But we see a special character(new line character) when we see output in windows server 2003 platform and we dont see new line character on windows XP .

When I further looked at FlatFileitemwriter soruce code I see following
if (headerCallback != null) {
try {
headerCallback.writeHeader(outputState.outputBuffe redWriter);
outputState.write("\n");
}.

I think we need to replace "\n" with DEFAULT_LINE_SEPARATOR which is available in the class.

I have created my own flatfileitemwriter and made the change and we see proper output in windows server 2003 . Please let me know if this fix can go into framework.

Thanks