Using System.I.O; //1
{ classClass1
{ staticvoidMain(string[] args)
{ streamWriter f = newstreamWriter («output.txt»); //2
inti = 3;
doubley = 4.12;
decimald = 600m;
strings = "Вася";
f.WriteLine («i=»+ 1); // 3
f.writeLine(«y={0} \nd = {1}», y,d); //4
f.WriteLine(«s=»+ s); // 5
f.Close(); } }} //Закрыть