I would like to know if there is any other way to create a doc (or txt) file, then this way that I have in my code:
if (!System.IO.Directory.Exists(System.IO.Path.GetTempPath() + @"TestDirectory"))
System.IO.Directory.CreateDirectory(System.IO.Path.GetTempPath() + @"TestDirectory");
string LogDatoteke = System.IO.Path.GetTempPath() + @"TestDirectory\TestFile.doc";
StreamWriter zapis;
zapis = File.CreateText(LogDatoteke);
zapis.WriteLine("Some text 1");
zapis.WriteLine("");
zapis.WriteLine("Some text 2");
zapis.WriteLine("Some text 3");
zapis.WriteLine("What ever");
zapis.Flush();
zapis.Close();