I want to be able to write a string to a text file on any computer. For example
string line = "Sample text to write"
File.WriteAllText(@"C:\Users\Rolex James\Documents\sample.txt" , line);
On another system this path would be different, is there a way of writing it such that you don't have to modify the path to suit each system you want to run it on?