Greetings

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • news.microsoft.com

    Greetings

    Hello

    How do we sort out a tab delimited file into an array ?

    Say a user opies the contents of the tab delimited file into memory
    (clipboard)

    I want my app to put it into an array and carry out some operation.

    Is there any code sample I could look at ?

    Thanks


  • Nicholas Paldino [.NET/C# MVP]

    #2
    Re: Greetings

    You could do this operation yourself, looking for commas in the string
    while you parse through it. However, I think you should probably use the
    text driver for OleDb, using the classes in the System.Data.Ole Db namespace
    to access the data.

    Hope this helps.


    --
    - Nicholas Paldino [.NET/C# MVP]
    - mvp@spam.guard. caspershouse.co m

    "news.microsoft .com" <v-hshah@microsoft .com> wrote in message
    news:OR$0BMnZFH A.3780@tk2msftn gp13.phx.gbl...[color=blue]
    > Hello
    >
    > How do we sort out a tab delimited file into an array ?
    >
    > Say a user opies the contents of the tab delimited file into memory
    > (clipboard)
    >
    > I want my app to put it into an array and carry out some operation.
    >
    > Is there any code sample I could look at ?
    >
    > Thanks
    >
    >[/color]


    Comment

    • news.microsoft.com

      #3
      Re: Greetings

      Hey Thanks Nicholas

      Is there any code snippet I could look at which would show me how to do it?

      Thanks

      "Nicholas Paldino [.NET/C# MVP]" <mvp@spam.guard .caspershouse.c om> wrote in
      message news:OHJT0HsZFH A.2412@TK2MSFTN GP10.phx.gbl...[color=blue]
      > You could do this operation yourself, looking for commas in the string
      > while you parse through it. However, I think you should probably use the
      > text driver for OleDb, using the classes in the System.Data.Ole Db
      > namespace to access the data.
      >
      > Hope this helps.
      >
      >
      > --
      > - Nicholas Paldino [.NET/C# MVP]
      > - mvp@spam.guard. caspershouse.co m
      >
      > "news.microsoft .com" <v-hshah@microsoft .com> wrote in message
      > news:OR$0BMnZFH A.3780@tk2msftn gp13.phx.gbl...[color=green]
      >> Hello
      >>
      >> How do we sort out a tab delimited file into an array ?
      >>
      >> Say a user opies the contents of the tab delimited file into memory
      >> (clipboard)
      >>
      >> I want my app to put it into an array and carry out some operation.
      >>
      >> Is there any code sample I could look at ?
      >>
      >> Thanks
      >>
      >>[/color]
      >
      >[/color]


      Comment

      Working...