Program is not creating text files within directory path
<p>So I'm having a small issue where I'm creating a directory and within that directory I'm making text files. It seems that it is only making the text files when the directory path is set to that of something like this <code>@"C:\Users\user1\Desktop\folder1\file.txt"</code>, and otherwise it creates my folders, but not my text files. </p>

<p>Does anyone know why that is or how I can change my code to allow for the text files to be made anywhere else I wish? </p>

<p>Here is the code I'm trying to get to work:</p>

<pre><code>            string file1 = "file1.txt";
        string file2 = "file2.txt";
        string file3 = "file3.txt";
        string file4 = "file4.txt";

        string Path1 = @".\Saved_Game\Profile 1";

        if (!Directory.Exists(Path1))
            Directory.CreateDirectory(Path1);

        D1 = @".\Saved_Game\Profile 1\file1.txt";
        D2 = @".\Saved_Game\Profile 1\file2.txt";
        D3 = @".\Saved_Game\Profile 1\file3.txt";
        D4 = @".\Saved_Game\Profile 1\file4.txt";

        if (!Directory.Exists(D1))
            Path.Combine(Path1, file1);
        if (!Directory.Exists(D2))
            Path.Combine(Path1, file2);
        if (!Directory.Exists(D3))
            Path.Combine(Path1, file3);
        if (!Directory.Exists(D4))
            Path.Combine(Path1, file4);
</code></pre>

<p>This exact code, with the altered directory path directed to my desktop of course, is used and works, so I'm unsure of why one path works and the other does not.</p>
