how to load a session?

Last post 04-06-2008, 5:42 AM by Talkabout. 0 replies.
Sort Posts: Previous Next
  •  04-06-2008, 5:42 AM Post number 46780

    how to load a session?

    Hello!
    i have something like this: http://img180.imageshack.us/my.php?image=sessionwm1.jpg

    my question is how can i open those files(in session1.txt are the full path of the files) in new tabs? so when i open a session, i open the file session1.txt, and i wanna that files to be opened in new tabs. How can i do this? i harass myself 3 days and i don't succeeded.

    private void loadSessionToolStripMenuItem_Click(object sender, EventArgs e)
    {
    string filename = ""
    if (openFileDialog2.ShowDialog() == DialogResult.OK)
    {
    try
    {
    filename=openFileDialog2.FileName;
    StreamReader sr = File.OpenText(filename); //here, filename is session1.txt
    String strLine;
    while ((strLine = sr.ReadLine()) != null) //i read every line, which is a full path
    {
    //here i don't know..
    }
    }
    catch (Exception ex)
    {
    MessageBox.Show(ex.ToString());
    }
    }
    }
View as RSS news feed in XML