locked
How to create Flat file RRS feed

  • Question

  • User377613556 posted

    hi, 

    I want to create on flat file with fixed and delimiter.

    Ex:  Output should be like below.

    0070010508202     003009.00-
    0070010495001     000081.00-

    Currently, I am using String format to write the file with stream writer. 

    but all position and length are dynamic  ( Like: 1 to  13 is Emp Number, and from 20 to 10 is emp Salary. In above sample  0070010508202     003009.00-, 0070010508202 is Emp Number and 003009.00- is salary )

    Is there any other alternative way to create it.

    Thanks,

    Ram

    Wednesday, June 7, 2017 2:44 PM

All replies

  • User2053451246 posted

    I want to create on flat file with fixed and delimiter.
    Fixed is the opposite of delimiter.  A flat file can't be both at the same time.  Please clarify what you are thinking you really expect to get in the end.

    And, even in your desired output, what is the delimiter?

    Wednesday, June 7, 2017 3:42 PM
  • User303363814 posted

    Show the code you have.  We can't really give an alternative unless you show us "an alternative to what"

    Thursday, June 8, 2017 1:45 AM