Text File Generation

I am creating a text file with the multiple pipe delimiter data. When the file is created it is not storing the data one by one like -
ABC|DEF||GJI
123|435|235

I am getting the output like - ABC|DEF||GJI 123|435|235
However when I open the same file with NPP, Excel or CSV format is it displaying properly.

OriginalPostID-232012

  Discussion posts and replies are publicly visible