V
V
Vladimir Korotenko2020-07-09 13:39:03
Java
Vladimir Korotenko, 2020-07-09 13:39:03

StreamTokenizer analog in C#?

I needed a code for magnetic declination. Actually transferred stupidly the most actual code from Java.
Is there a direct equivalent of StreamTokenizer in C# ?

I looked in this direction, but it seems that the Indian forgot something
https://gist.github.com/riyadparvez/4365600

I decided with the usual split.
But somehow it's not pretty.

https://www.ngdc.noaa.gov/geomag/WMM/soft.shtml

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Shitskov, 2020-07-09
@firedragon

Is there a direct equivalent of StreamTokenizer in C# ?

Unfortunately no. Split or Regexp would be the standard ways.
I came across such a library, maybe you can pull Tokenizer out of it https://www.codeproject.com/Articles/3143/RTools-U...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question