It's not trivial, you have to think about your data first. If your string can contain any character, then you need to put the number first, followed by a delimiter to show where it ends, then the string value:
string writeMe = string.Format("{0};{1}", numericValue, stringValue);
will genare a string to write to the file safely.
You can then read it back, and convert it back to usable values again:
string input = "12345.67;This is the text part";
int sep = input.IndexOf(';');
double numericValue = double.Parse(input.Substring(0, sep));
string strVal = input.Substring(sep + 1);