C# Da Txtden Veri Okutma
-
arkadaşlar txtde yaptığın bir oyun tablosunu console applicationda txtden nasıl okutabillir?
Mod: gereksiz konu gizlemeyelim
-
Using System.IO
Gerisini file. şeklinde bulursun.
-
-
using System;
using System.IO;
namespace csharp_station.howto
{
class TextFileReader
{
static void Main(string[] args)
{
// create reader & open file
Textreader tr = new StreamReader("date.txt");
// read a line of text
Console.WriteLine(tr.ReadLine());
// close the stream
tr.Close();
}
}
} -
FCN bunu yazdı
using System;
using System.IO;
namespace csharp_station.howto
{
class TextFileReader
{
static void Main(string[] args)
{
// create reader & open file
Textreader tr = new StreamReader("date.txt");
// read a line of text
Console.WriteLine(tr.ReadLine());
// close the stream
tr.Close();
}
}
}
eyvallah abim sağolasın :D
