C#.NET Knight Online ChatLog Okuma Fonksiyonu

  • HyperFilter | DoS Protection | DDoS Protection | DoS Mitigation | DDoS Mitigation | AntiDoS | AntiDDoS | Proxy Shielding

QuickSilver

Kayıtlı Üye
Kayıtlı Üye
Joined
Mar 14, 2012
Messages
12
Reaction score
4
Points
3
Age
28
Bir Önceki Paylaştığım Fonksiyonla Klasörde Bulunan ChattingLog DeathLog gibi dosya isimlerini listeye çekebiliyorduk.

o fonksiyonu kullanırsanız + bunuda kullanırsanız harika bir chatlogoku ma fonksiyonunuz olur 🙂



Bir Önceki Konu Linki : Üstüme Tıklarsan Bir Önceki Konuya Gidersin.



You must reply in the thread to view hidden text.




Code:
private void ChatLogOku(ListBox Isimliste,ListBox Logliste,string path)

        {

            Logliste.Items.Clear();

            Logliste.Items.Add("Seçilen Dosyanın Ismi :" + " " + Isimliste.SelectedItem);

            FileStream fs = new FileStream(path + "\\" + Isimliste.SelectedItem, FileMode.Open);

            StreamReader sr = new StreamReader(fs);

            while (!sr.EndOfStream)

            {

                string s = sr.ReadLine();

                string[] tokens = s.Split(',');

                Logliste.Items.Add(tokens[1]);

            }

            sr.Close();

        }



 
bakalım yorum atarız sonra



Edit:



kaldığı yerden devam etme olmadığı için log 1mb olduğu anda program patlar
 
bakalım yorum atarız sonra



Edit:



kaldığı yerden devam etme olmadığı için log 1mb olduğu anda program patlar



onu ayrı olarak yazmıştım 🙂
 
Back
Top Bottom
Reklam
Reklam