Learning CSHARP by Example
Read an entire file into a string
using System; namespace PlayingAround { class ReadAll { public static void Main(string[] args) { string contents = System.IO.File.ReadAllText(@"C:\t1"); Console.Out.WriteLine("contents = " + contents); } } }
+ نوشته شده در چهارشنبه چهارم اسفند ۱۳۸۹ ساعت 20:13 توسط علی احمدی
|