View Single Post
Old Jun 12th, 2005, 9:31 AM   #33
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
I suggest you try it out - if you can accomplish it, you'll have learnt a lot. Basically, what you need to do is read the whole thing into a string, check the last character (which should be 'C' or 'F') - you can use charAt for this, and use a function that converts a string to a floating-point number to decipher the rest. I don't know Java, so I can't point you in the direction of a specific function, but someone else should be able to give you a hand.
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote