The system cannot find the file specified c#
<p>I wrote a program which writes to a text file and needs to read from it on every computer startup.</p>

<p>I used the Registry to add my program to the Startup programs,and wrote this simpl code:</p>

<pre><code>private void Form1_Load(object sender, EventArgs e)
{
   try
   {
      Process.Start("settings.txt");
   }
   catch(Exception ex)
   {
      MessageBox.Show(ex.ToString());
   }
  }

private void button1_Click(object sender, EventArgs e)
{
    File.WriteAllText("settings.txt", "Test Writing");
}
</code></pre>

<p>Surprisingly, I'm getting an error:</p>

<blockquote>
  <p>The system cannot find the file specified </p>
</blockquote>

<p>exception the next time i reboot my computer and that program runs...like the files doesn't exist...</p>

<p>More over, when I launch the program(manually) it does find the file and it starts it(I'm suppose to read from that text file,but right now I'm just trying to launch it).</p>

<p>I also tried to print the program execution path, but both tries(manual launch and the windows Startup launch) print the same path.</p>

<p>Does anyone have any idea for my case?</p>

<p>Thanks.</p>