Reading fixed columns of float data from text file with C#

Discussion in 'Data Sets and Feeds' started by bungrider, Apr 13, 2004.

  1. In this case, better keep your mouth shut!
     
    #21     Apr 15, 2004
  2. axe,

    are you referring to python here??

    thx,
    -b
     
    #22     Apr 16, 2004
  3. There are a bunch of good languages that have been
    ignored by the industry.

    ruby
    smalltalk
    python
    Even objective-C, remember that one?
    Was awesome compared to C++.


    peace

    axeman


     
    #23     Apr 16, 2004
  4. Personally I think python does have some level of acceptance, google for one makes extensive use of it . Also Im 98% sure that nasa uses it (ok, Im not sure if that is a good or bad thing).
    ps - thanks for bringing up obj-c its been awhile since Ive heard anyone talk about C++'s stillborn cousin. :D
     
    #24     Apr 16, 2004
  5. Ive written a lot of code in both, and C++ is a hideously
    deformed barely functional language compared to objective-c.

    Just another example that the quality of the technology means nothing.

    Sometimes first to market just wins, or the language that
    attracts the biggest backer, etc...

    Objective-C was like programming in smalltalk, but with the
    ability to drop down to pure C when you really needed speed.

    The best of both worlds. Just missing a garbage collector, same
    problem with C++, or C crap crap as I like to call it :D


    peace

    axeman



     
    #25     Apr 16, 2004
  6. agrau

    agrau

    For speed, I'd through in a BufferedStream and a hand-rolled number parser if you are sure about the decimal sign, otherwise localization-checks kick in every time. Also, depending on the field separator and the number of fields, rolling you own split with indexOf is a big gainer, because it prevents the creation of many temp objects and the final return array. You're loosing some comfort and nice looking code, though.

    agrau
     
    #26     Apr 16, 2004