Writing a float value to a file

After reviewing floattostring.h threads the suggested method is to use:

String tempC = dtostrf(celsius, 10, 2, 10);

However this generates errors...

 error: invalid conversion from 'int' to 'char*'
 error: initializing argument 4 of 'char* dtostrf(double, signed char, unsigned char, char*)'