Open Existing File

image_pdfimage_print
   
 
/*
 * C# Programmers Pocket Consultant
 * Author: Gregory S. MacBeth
 * Email: gmacbeth@comporium.net
 * Create Date: June 27, 2003
 * Last Modified Date:
 * Version: 1
 */
using System;
using System.IO;

namespace Client.Chapter_11___File_and_Streams
{
  public class OpenExistingFile {
    static void Main(string[] args)
    {
      FileInfo MyFile = new FileInfo(@"c:ProjectsTesting.txt");
      FileStream MyStream;

      MyStream = MyFile.Open(FileMode.Open, FileAccess.Read, FileShare.None);
    }
  }
}

           
         
     


This entry was posted in File Stream. Bookmark the permalink.