Showing posts with label how to write text into notepad file. Show all posts
Showing posts with label how to write text into notepad file. Show all posts

Monday, June 6, 2011

how to write text into notepad file

 class WriteTextFile
    {
        static void Main()
        {
            // These examples assume a "C:\Users\Public\TestFolder" folder on your machine.
            // You can modify the path if necessary.
            // Example #1: Write an array of strings to a file.
            // Create a string array that consists of three lines.
            string[] lines = {"First line", "Second line", "Third line"};
            System.IO.File.WriteAllLines(@"C:\Users\Public\TestFolder\WriteLines.txt", lines);

            // Example #2: Write one string to a text file.
            string text = "A class is the most powerful data type in C#. Like structures, " +
      

AngularJS Basics - Part 1

                                                                  AngularJS What is AngularJS ·          Framework by googl...