Normally, when a field is empty the delimiter is still written. Consider another example:
Field1=A
Field2=B
Field3=C
Field4=(null)
Field5=E
If one writes the flat file as A|B|C||E then a consumer of the file readily knows that Field4 is empty. If the file is written A|B|C|E, then the consumer has no idea if E belongs in Field4 or Field5. Consider the case where multiple fields are null and parsing the record correctly is impossible.
Avinash, can you share a bit more of what the need is? With the info provided so far it would seem the solution you’re considering is heading down the wrong path.
#webMethods#Integration-Server-and-ESB#Flow-and-Java-services