public bool SaveUrls() { if (File.Exists(historyURL)) { File.Delete(historyURL); } using (StreamWriter sw = new StreamWriter(historyURL)) { visitedURL.ForEach(sw.WriteLine); } WriteHTML.CreateHtmlFile(this.visitedURL); return(true); }