Jason,
Paths aren't relative unless you are dealing in HTML.
You should just use the file name if you want it saved in the "current working folder" (
Environment.CurrentDirectory
), or get the application execution (
Application.StartupPath
) to save the file where the application was launched from.
So, to create the full path/file name for opening/saving in the folder the application is launched from... use:
string fileName = String.Format(@"{0}\type1.txt", Application.StartupPath);
One more tip... using the @ in front of a string means 'take this literally'... so your \\ is not translated to a single \ the way you wrote that.
@"\\..."
would be the beginning of a network UNC path.
Hope that helps,
Frank