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
Post a Comment