[Solved] Auto-generate a list of words in C#, and save as File [closed]

The solution I came up with is as follows: public void AppendFile(string filePath, long firstWord, long lastWord) { using (StreamWriter sw = File.AppendText(filePath)) { for (long i = firstWord; i < lastWord; i++) { sw.WriteLine(GetWord(i)); } } } public void AppendFile(string filePath, long lastWord) { AppendFile(filePath, 0, lastWord); } public void AppendFile(string filePath) { AppendFile(filePath, … Read more