um.. are you using C# or something? Anyways in C stdlib library there is a function that can do what you want.
sscanf() the name is.
An example of its use would be
sscanf (string,"%f",float); It will take the first float from the string provided on the left and put its value into the float variable provided on the right.
Valmian
Junior Poster in Training
82 posts since Sep 2003
Reputation Points: 13
Solved Threads: 0