Create fixed length text file

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Darin Browne

    #1

    Create fixed length text file

    I have to create a fixed length text file and was hoping
    someone could point me to an example or resources that
    could help explain how it is done in C#.

    Thanks.
  • Miha Markic

    #2
    Re: Create fixed length text file

    Hi Darin,

    Why don't you just write preffered number of (byte)0 values or spaces to the
    file?

    --
    Miha Markic - RightHand .NET consulting & software development
    miha at rthand com

    "Darin Browne" <db@nospam.co m> wrote in message
    news:14a901c3ae 9f$e7a41870$a60 1280a@phx.gbl.. .[color=blue]
    > I have to create a fixed length text file and was hoping
    > someone could point me to an example or resources that
    > could help explain how it is done in C#.
    >
    > Thanks.[/color]


    Comment

    • Eric Johannsen

      #3
      Re: Create fixed length text file

      What format does your file have to take? I would just create an in-memory
      data structure that represents the data you want to write out, then write
      that structure to disk when the time comes.

      Eric

      "Darin Browne" <db@nospam.co m> wrote in message
      news:14a901c3ae 9f$e7a41870$a60 1280a@phx.gbl.. .[color=blue]
      > I have to create a fixed length text file and was hoping
      > someone could point me to an example or resources that
      > could help explain how it is done in C#.
      >
      > Thanks.[/color]

      Comment

      Working...