I am trying to create a new file on my desktop with the path "Users/username/Desktop/file.txt" but when I try to compile my code I get an error but if I use "../../file.txt" it works fine. 
How would I get this to work from the "Users" path?
I am trying to create a new file on my desktop with the path "Users/username/Desktop/file.txt" but when I try to compile my code I get an error but if I use "../../file.txt" it works fine. 
How would I get this to work from the "Users" path?
Try to add / before the path:
"/Users/username/Desktop/file.txt"
That worked for me