• Welcome to Overclockers Forums! Join us to reply in threads, receive reduced ads, and to customize your site experience!

C# Importing Excel

Overclockers is supported by our readers. When you click a link to make a purchase, we may earn a commission. Learn More.
I don't have much experience in that area, and its not looking good as far as built in libraries are concerned..

http://stackoverflow.com/questions/1134311/c-sharp-tokenizer-keeping-the-seperators

Perhaps there is a 3rd party solution!

Yea that's what I ended up using but little different. Reason I liked tokenizer in Java is that I can delimit the string into different variables, but not sure how to do it with this so I just used strings substring for the first part and split on the second :D

Code:
public CatalogerCode(String dataIn)
        {
            left = dataIn.Substring(0, 2).Trim();
            
            String[] words = dataIn.Split('=');

            foreach (String word in words)
            {
                right = word;
            }

        }
 
What exactly is that? I am running into a similar problem and don't know how to solve it.
 
Back