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

Quote from harrytrader:

It has been designed by the architect of Delphi so that it should be promising: I said it should because I still never looked at C# so i can't tell really :D

In this case, better keep your mouth shut!
 
Quote from axeman:

...Management doesn't care about an obscure language that
is AWESOME, if everyone else isn't using it. Lemmings all of them....

axe,

are you referring to python here??

thx,
-b
 
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


Quote from bungrider:

axe,

are you referring to python here??

thx,
-b
 
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
 
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



Quote from StillTrading:

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
 
Quote from NoMoreOptions:

A quick answer with out reading into your question.

Use StreamReader, string.Split, and double/decimal.Parse.

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
 
Back
Top