absolute and relative paths
<p>Ok I have a question. What is the difference with a absolute and relative path?
I am asking cause I am working on a project for school. Yes this is homework. I am trying to understand alittle bit more. 
This is one example of what is being asked.</p>

<blockquote>
  <p>•  When the user clicks the “Save” button, write the selected record to the file specified in txtFilePath (absolute path not relative) without truncating the values currently inside</p>
</blockquote>

<p>this is what I have</p>

<pre><code> private void button2_Click(object sender, EventArgs e)
    {
        if (saveFileDialog1.ShowDialog() == DialogResult.OK)
        {
            StreamWriter myWriter = new StreamWriter(saveFileDialog1.FileName);
            myWriter.Write(txtFilePath.Text);
            myWriter.Close();
        }
    }
</code></pre>

<p>Now I am not understanding if I am doing this right. I know when I save it to my desktop and I delete it from my listbox and when I try to reload it again nothing shows up. This is what I have on my form</p>

<pre><code>private void Form1_Load(object sender, EventArgs e)
        {
            string[] myFiles = Directory.GetFiles("C:\\");
            foreach (string filename in myFiles)
            {
                FileInfo file = new FileInfo(filename);
                employeeList.Items.Add(file.Name);
            }
</code></pre>

<p>and this is the load</p>

<pre><code>private void button1_Click(object sender, EventArgs e)
    {
        if (openFileDialog1.ShowDialog() == DialogResult.OK)
        {
            StreamReader myReader = new StreamReader(openFileDialog1.FileName);
            txtFilePath.Text = openFileDialog1.FileName;
            txtFilePath.Text = myReader.ReadToEnd();
            myReader.Close();
        }
}
</code></pre>

<p>Can someone please help me make sense of this. Thanks.</p>
