ZengCode.Com (The Thai Php Framework)  


Home   Download   Manual   About us    

Facebook   


MAIN MENU
เขียนโปรแกรมบน iPhone ด้วย MonoTouch
News
Php Tips
Ubuntu
Spring+Strut+Hibernate
Android Programming
Design Pattern By PHP
C# Design Pattern
Linux Quick Tips
C# Tips & Technique
C# using Linq น่าใช้จริงๆ
Java & JavaScript Tips
MAVEN
Database & SQL
ZengCode Framework Guide
Mac OSx
Zeng Code Code
Programming
IPhone (Tips and Trick)

Download เอกสารที่น่าสนใจ

     File..::.Exists Method   (2009-08-25)

sing System;
using System.IO;

class Test
{
    public static void Main()
    {
        string sourceFile = @"c:\tests\Test.txt";
        string newFile = @"c:\tests\Test2.txt";
        if (File.Exists(sourceFile))
        {

            File.Copy(sourceFile, newFile);

        }
        else
        {
            Console.WriteLine("Source file does not exist.");

        }
    }
}


Comment
Name
Comment
Security CodeCAPTCHA Image

web hit counter

This page took 0.067768 seconds to load.