Created
March 12, 2011 03:51
-
-
Save gbranchaudrubenovitch/867011 to your computer and use it in GitHub Desktop.
Path.Combine sample
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
string combinedPath = System.IO.Path.Combine(rootFolder, "/Code/Domain/output.file"); | |
System.IO.File.WriteAllText(combinedPath, content); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
string combinedPath = System.IO.Path.Combine(rootFolder, "Code/Domain/output.file"); | |
System.IO.File.WriteAllText(combinedPath, content); // combinedPath now contains expected location |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sample used for the Path.Combine post