- 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.
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();
}