File Text Method C# with Example



File Text Method C# with Example

 using System.IO;
using System;

namespace CSharpFilesAndStreams
{
	class Program
	{
		static void Main(string[] args)
		{
			// Get a StreamReader object.
			FileInfo f5 = new FileInfo(@"C:\boot.ini");
			using(StreamReader sreader = f5.OpenText())
			{
				// Use the StreamReader object...
			}
		}
	}
}	 

0 Comment's

Comment Form

Submit Comment