Skip to content

Instantly share code, notes, and snippets.

@gbranchaudrubenovitch
Created March 12, 2011 03:51
Show Gist options
  • Save gbranchaudrubenovitch/867011 to your computer and use it in GitHub Desktop.
Save gbranchaudrubenovitch/867011 to your computer and use it in GitHub Desktop.
Path.Combine sample
string combinedPath = System.IO.Path.Combine(rootFolder, "/Code/Domain/output.file");
System.IO.File.WriteAllText(combinedPath, content);
string combinedPath = System.IO.Path.Combine(rootFolder, "Code/Domain/output.file");
System.IO.File.WriteAllText(combinedPath, content); // combinedPath now contains expected location
@gbranchaudrubenovitch
Copy link
Author

Sample used for the Path.Combine post

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment