SaveText
Introduction
Code Example
System.Text.StringBuilder builder = new System.Text.StringBuilder();
builder.AppendLine("Why is FlatRedBall so great? Let me count the reasons...");
// Stop at 100 to prevent an infinite loop :)
for (int i = 1; i < 100; i++)
{
builder.AppendLine(i.ToString());
}
string fileToSave = FileManager.UserApplicationData + @"\temp.txt";
FileManager.SaveText(builder.ToString(), fileToSave);
System.Diagnostics.Process.Start(fileToSave);
Last updated
Was this helpful?