سلام بر تمامی برنامه نویسان عزیز 😉 در این مطلب از وب سایت پروگرم 98 آموزش ReadToEnd() برای StreamReader در سی شارپ #C را آماده کردم. انشاالله که این کد براتون مفید باشه.
کد ReadToEnd() برای StreamReader در سی شارپ #C :
using System;
using System.IO;
public class MainClass
{
static void Main(string[] args)
{
StreamReader MyStreamReader = new StreamReader(@"c:\Projects\Testing.txt");
string str = MyStreamReader.ReadToEnd();
Console.WriteLine(str);
using System.IO;
public class MainClass
{
static void Main(string[] args)
{
StreamReader MyStreamReader = new StreamReader(@"c:\Projects\Testing.txt");
string str = MyStreamReader.ReadToEnd();
Console.WriteLine(str);