Jelmer Posted September 1, 2006 Posted September 1, 2006 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:\" Quote
Leaders snarfblam Posted September 1, 2006 Leaders Posted September 1, 2006 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. Quote [sIGPIC]e[/sIGPIC]
Cags Posted September 1, 2006 Posted September 1, 2006 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. Quote Anybody looking for a graduate programmer (Midlands, England)?
Jelmer Posted September 2, 2006 Author Posted September 2, 2006 *ini files of other program's are showed well.. Quote
Jelmer Posted September 2, 2006 Author Posted September 2, 2006 (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 September 2, 2006 by Jelmer Quote
Cags Posted September 2, 2006 Posted September 2, 2006 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(). Quote Anybody looking for a graduate programmer (Midlands, England)?
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.