c# Where does a path with no beginning default to? -


stream stream = new filestream("my file", filemode.create, fileaccess.write, fileshare.none); 

if have code this, path of stream defaults bin\debug .exe located. if .exe in directory, path default there? default same directory .exe is?

the root current working directory application. doesn't have same exe location, , can change during execution.

for example if in command line in directory c:\foo , run application c:\boo\my.exe path relative c:\foo

you can find or change working directory using enviroment.currentdirectory property


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -