Creating Files : File Create « File Directory Stream « C# / CSharp Tutorial

Home
C# / CSharp Tutorial
1.Language Basics
2.Data Type
3.Operator
4.Statement
5.String
6.struct
7.Class
8.Operator Overload
9.delegate
10.Attribute
11.Data Structure
12.Assembly
13.Date Time
14.Development
15.File Directory Stream
16.Preprocessing Directives
17.Regular Expression
18.Generic
19.Reflection
20.Thread
21.I18N Internationalization
22.LINQ
23.GUI Windows Forms
24.2D
25.Design Patterns
26.Windows
27.XML
28.XML LINQ
29.ADO.Net
30.Network
31.Directory Services
32.Security
33.unsafe
C# / C Sharp
C# / C Sharp by API
C# / CSharp Open Source
C# / CSharp Tutorial » File Directory Stream » File Create 
15.2.1.Creating Files
using System;
using System.IO;

public class MainClass
{
  public static void Main()
  {
    FileInfo MyFile = new FileInfo(@"c:\Test.txt");

    MyFile.Create();
  }
}
15.2.File Create
15.2.1.Creating Files
15.2.2.Create a file and get its creation time, full name and Attributes
15.2.3.Create text file using File.CreateText
w___ww___.__ja_v___a___2___s_.__c_o_m__ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.