I'm trying to keep track of some information by using a text file. I want the text file to reset every time I write in it so that I don't get a bunch of old information. Is there any way for me to do this?

```cs
void WriteString(string text, string path) {
    StreamWriter writer = new StreamWriter(path, true);
    writer.Write(text);
    writer.Close();
}

```