An exclusive gaming industry community targeted
to, and designed for Professionals, Businesses
and Students in the sectors and industries
of Gaming, New Media and the Web, all closely
related with it's Business and Industry.
A Rich content driven service including articles,
contributed discussion, news, reviews, networking, downloads,
and debate.
We strive to cater for cultural influencers,
technology decision makers, early adopters and business leaders in the gaming industry.
A medium to share your or contribute your ideas,
experiences, questions and point of view or network
with other colleagues here at iVirtua Community.
Pretty much i have made a program which outputs certain textboxes to a file, which is in the directory of the program.
So the program is located as shown below:
H:/Program/save.exe
And i want to save the file to
H:/Program/Save/save1.txt
I can manage to get it working like that but due to the program being on my USB/Flashdrive it can change from G:, H:, F: etc. Which eamns the program crashes.
Does anyone know that code where it is like 'Rootdirectory'/Save/save.txt
So i dont have to put the H: G: etc. It does it from where the program is run from?