Hello, I have a problem with one basic method - saving a text file. I have no idea why it doesn't work:
static void Main()
{
Console.Write("Write the statement:");
string statement = Console.ReadLine();
Console.Write("Write the name of the file:");
string file_name = Console.ReadLine();
StreamWriter file = new StreamWriter("c:\\" + file_name + ".txt");
file.WriteLine(statement);
}
Thanks for any help!