Click here to Skip to main content
15,913,487 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: Urgent Help Required Pin
Dave Kreskowiak16-Jul-07 4:21
mveDave Kreskowiak16-Jul-07 4:21 
AnswerRe: Urgent Help Required Pin
Dave Kreskowiak16-Jul-07 4:23
mveDave Kreskowiak16-Jul-07 4:23 
GeneralRe: Urgent Help Required Pin
originSH16-Jul-07 4:24
originSH16-Jul-07 4:24 
GeneralRe: Urgent Help Required Pin
Paul Conrad16-Jul-07 9:25
professionalPaul Conrad16-Jul-07 9:25 
GeneralRe: Urgent Help Required Pin
Sathesh Sakthivel16-Jul-07 17:28
Sathesh Sakthivel16-Jul-07 17:28 
GeneralRe: Urgent Help Required Pin
Andy *M*16-Jul-07 22:29
Andy *M*16-Jul-07 22:29 
GeneralRe: Urgent Help Required Pin
Vasudevan Deepak Kumar16-Jul-07 22:38
Vasudevan Deepak Kumar16-Jul-07 22:38 
AnswerRe: Urgent Help Required Pin
Richard Jones16-Jul-07 4:24
Richard Jones16-Jul-07 4:24 
Check out File.Copy.

using System;
using System.IO;

class Test 
{
    public static void Main() 
    {
        string path = @"c:\temp\MyTest.txt";
        if (!File.Exists(path)) 
        {
            // Create a file to write to.
            using (StreamWriter sw = File.CreateText(path)) 
            {
                sw.WriteLine("Hello");
                sw.WriteLine("And");
                sw.WriteLine("Welcome");
            }	
        }

        // Open the file to read from.
        using (StreamReader sr = File.OpenText(path)) 
        {
            string s = "";
            while ((s = sr.ReadLine()) != null) 
            {
                Console.WriteLine(s);
            }
        }

        try 
        {
            string path2 = path + "temp";
            // Ensure that the target does not exist.
            File.Delete(path2);

            // Copy the file.
            File.Copy(path, path2);
            Console.WriteLine("{0} was copied to {1}.", path, path2);

            // Delete the newly created file.
            File.Delete(path2);
            Console.WriteLine("{0} was successfully deleted.", path2);
        } 
        catch (Exception e) 
        {
            Console.WriteLine("The process failed: {0}", e.ToString());
        }
    }
}


Paul Watson wrote:
Like, if you say sort of, like, you know, one more, you know, time, I'm going to, like, you know, sort of sort you out, you know.


QuestionMDIParent's scroll bars Pin
Libor Tinka16-Jul-07 3:05
Libor Tinka16-Jul-07 3:05 
AnswerRe: MDIParent's scroll bars Pin
Pete O'Hanlon16-Jul-07 3:11
mvePete O'Hanlon16-Jul-07 3:11 
GeneralRe: MDIParent's scroll bars Pin
Libor Tinka16-Jul-07 3:34
Libor Tinka16-Jul-07 3:34 
GeneralRe: MDIParent's scroll bars Pin
Libor Tinka16-Jul-07 3:39
Libor Tinka16-Jul-07 3:39 
GeneralRe: MDIParent's scroll bars Pin
Dave Kreskowiak16-Jul-07 4:17
mveDave Kreskowiak16-Jul-07 4:17 
QuestionHow to handle "Neutral" resources along with "English and Japanese" resources Pin
Neeranjan15-Jul-07 21:21
Neeranjan15-Jul-07 21:21 
QuestionHow to check null string in java script Pin
Rmesh15-Jul-07 18:54
Rmesh15-Jul-07 18:54 
AnswerRe: How to check null string in java script Pin
Vasudevan Deepak Kumar15-Jul-07 21:30
Vasudevan Deepak Kumar15-Jul-07 21:30 
GeneralRe: How to check null string in java script Pin
Rmesh15-Jul-07 23:34
Rmesh15-Jul-07 23:34 
GeneralRe: How to check null string in java script Pin
Vasudevan Deepak Kumar16-Jul-07 22:37
Vasudevan Deepak Kumar16-Jul-07 22:37 
GeneralRe: How to check null string in java script Pin
Akhilesh Yadav17-Jul-07 0:17
Akhilesh Yadav17-Jul-07 0:17 
QuestionXMlDocument and Reloading -- No Data? Pin
bobber20515-Jul-07 18:34
bobber20515-Jul-07 18:34 
AnswerRe: XMlDocument and Reloading -- No Data? Pin
Vasudevan Deepak Kumar15-Jul-07 22:19
Vasudevan Deepak Kumar15-Jul-07 22:19 
Questionvb .net Pin
chirag visavadia14-Jul-07 23:34
chirag visavadia14-Jul-07 23:34 
AnswerRe: vb .net Pin
Sathesh Sakthivel15-Jul-07 17:30
Sathesh Sakthivel15-Jul-07 17:30 
AnswerRe: vb .net Pin
Vasudevan Deepak Kumar15-Jul-07 21:31
Vasudevan Deepak Kumar15-Jul-07 21:31 
AnswerRe: vb .net Pin
Pete O'Hanlon16-Jul-07 0:21
mvePete O'Hanlon16-Jul-07 0:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.