1.

Solve : C# Help please...?

Answer»

I decided I WANT to make a FILE that can make other files...

My Code:

using System;
using System.Collections;
using System.TEXT;
using System.IO;

public class Writetextfile
{
public static void Main(string[] args)
{
FileInfo t = new FileInfo("Hello.txt");
StreamWriter Tex =t.CreateText();
Tex.WriteLine("HELLO!!!!");
Tex.Write(Tex.NewLine);
Tex.close();
Console.WriteLine(" The Text file named Hello is created ");
Console.ReadLine();
}
}

For some reason it gives me this error

Text Maker.cs(14,1): error CS0117: 'System.IO.StreamWriter' does not CONTAIN a definition for 'close'

I am using Version 1.1.4322 of microsoft.NET

Can someone HELP me? Please Ignore this forum I Figured out what I did wroung.

I forgot to captialize the C in Close xD



Discussion

No Comment Found