به نام خدا سلام بر برنامه نویسان عزیز 😉 در این پست کد خواندن خط ها (lines) از یک فایل متنی با StreamReader در سی شارپ را آماده کردم. امیدوارم که این کد برای شما مفید باشد.
کد خواندن خط ها (lines) از یک فایل متنی با StreamReader در سی شارپ :
using System;
using System.IO;
class MainClass
{
public static void Main(string[] args)
{
string filename = "c:\\file.txt";
using System.IO;
class MainClass
{
public static void Main(string[] args)
{
string filename = "c:\\file.txt";