I have a text file which contains different types of data. I read in the text file into a CString and use it to parse information. However, I need to now get some of the data out, but some of it could be double, float, or int. I know of the functions like atoi, atof, etc. However, I need to first test what type it is before converting it from the CString to the data type. I was wondering if anyone knew of a way to test for what kind of data type you may be working with. If i just randomly convert then i may lose data along the way. Thx