[Solved] How to set path of a text file created by an visual studio 2010 application?

The folder where the executable resides is: string executableLocation = System.IO.Path.GetDirectoryName( System.Reflection.Assembly.GetExecutingAssembly().Location); And so you want to save your file to: System.IO.Path.Combine(executableLocation, “myfile.txt”); 3 solved How to set path of a text file created by an visual studio 2010 application?

[Solved] Why savepath resets userpath in Matlab?

I could not maintain stably the userpath in the system so a solution which works in the beginning of the functions checkSystemMemory(); %% TODO Virtual memory; enable virtual memory on HDDs. % http://askubuntu.com/q/799834/25388 home=char(java.lang.System.getProperty(‘user.home’)); % all systems if (isempty(userpath)) userpath(fullfile(home, ‘Documents/bin/matlab/’) ) % list software locations in the project location addpath(fullfile(home, ‘Documents/Math/’) ) % list … Read more