SaveStringToFile /File I/O

bool SaveStringToFile(string fileName, string str)

Saves str content to a file. If the file already exists it will be overwritten.

Sample:

string destDir = GetExternalStoragePath();
SaveStringToFile(destDir + "file.sav", "Save this string into the file");