public static CreateToFile ( this fileText, string absolutePath ) : void | ||
fileText | this | A String containing text to be written to the file. |
absolutePath | string | The complete file path to write to. |
return | void |
public static void CreateToFile(this string fileText, string absolutePath)
{
using (StreamWriter sw = File.CreateText(absolutePath))
sw.Write(fileText);
}