Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hello

 

My program is completed. So i build a install file. But i need 1 more file.

The ini file i've generated. The program needs it.

 

But it's gone!? I've searched all disks and can't find something...

But the program can open it :S .

 

Maybe you can help me.

This is the code:

 

				IniFile ini = new IniFile("JTBilling.ini");				
			ini.IniWriteValue("Info","Database",database.Text);
			ini.IniWriteValue("Info","LastName",textBox2.Text);

 

Where should Microsoft visual studio save it like this???

If i made it like: IniFile ini = new IniFile("c:\test.ini");

Then i cant find it in de the root of "C:\"

  • Leaders
Posted
Maybe you need to go to your windows settings (I believe that it is under folder options in the tools menu of explorer) and disable the option to hide system files.
[sIGPIC]e[/sIGPIC]
Posted
I considered making that suggestion, but after a quick search I realised I couldn't find an option that hides *.ini files. Whilst you can hide system files, my windows at least does not appear to consider *.ini files to be system files.
Anybody looking for a graduate programmer (Midlands, England)?
Posted (edited)

If i save it like this:

 

IniFile ini = new IniFile("C:\\test.ini");

 

Then the file is on the root of C:\

 

But withouth that path.. where would he save it..

 

Does enybody know how i know the full path of the running exe file????

Edited by Jelmer
Posted
If you aren't specifying a fully qualified path, assuming it doesn't error, I would assume it would save to a path relative to the .exe. You can find the path to your application using Application.StartupPath().
Anybody looking for a graduate programmer (Midlands, England)?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...