Re: splitting a CSV line in half

Discussion in 'Java' started by Roedy Green, May 7, 2008.

  1. Roedy Green

    Roedy Green Guest

    On Wed, 07 May 2008 09:52:55 -0400, Rex Mottram <> wrote,
    quoted or indirectly quoted someone who said :

    >. Can anyone suggest a
    >more elegant technique?


    you could scan for , incrementing on each hit. When you find n, split
    the string it two with substr + substr.. That would be fast, straight
    forward, but perhaps not quite as terse as your current solution.
    --

    Roedy Green Canadian Mind Products
    The Java Glossary
    http://mindprod.com
    Roedy Green, May 7, 2008
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. John Ericson
    Replies:
    0
    Views:
    420
    John Ericson
    Jul 19, 2003
  2. trint
    Replies:
    4
    Views:
    687
    =?ISO-8859-1?Q?G=F6ran_Andersson?=
    Sep 11, 2007
  3. Drew Olson
    Replies:
    33
    Views:
    934
    Drew Olson
    Dec 2, 2006
  4. joe chesak
    Replies:
    7
    Views:
    267
    (r.*n){2}
    Sep 23, 2010
  5. Mike Ballard
    Replies:
    6
    Views:
    263
    Dr.Ruud
    Nov 15, 2005
Loading...

Share This Page