All pastes #189152 Raw Edit

Unnamed

public text v1 · immutable
·published 2006-10-02 21:30 UTC
rendered paste body
            StreamWriter store = new StreamWriter("f1.txt");
                foreach (string i in listBox1.Items)
                {
                    store.WriteLine(i);
                }     
            store.Flush();
            store.Close();
            StreamWriter store2 = new StreamWriter("f2.txt");
                foreach (string i in listBox2.Items)
                {
                    store2.WriteLine(i);
                }
            store2.Flush();
            store2.Close();