I'm want to read an equation stored in a text file and then evaluate it. Is there a function that exists that will evaluate a string and return a numerical value?
Thanks
Trevor
I'm want to read an equation stored in a text file and then evaluate it. Is there a function that exists that will evaluate a string and return a numerical value?
Thanks
Trevor
What yo mean evaluate? can't understand your question.
tdean probably has a file with something stored like this:
2 + 2
And then wants a function to read it and evaluate it to 4.
Answer: No there is no such function, you need to write it yourself.
Just like shiro said, you'll need to make your own one.
Hmm, shouldn't be so difficult, try creating, and if you get in troubles, ask.