xboxscene.org forums

Author Topic: Reading A .ini File  (Read 37 times)

BenJeremy

  • Archived User
  • Hero Member
  • *
  • Posts: 5645
Reading A .ini File
« on: February 14, 2003, 05:44:00 PM »

QUOTE (Gjiden @ Feb 14 2003, 09:37 PM)
I have been having the worst time trying to get my xbox app to read from a .ini file. I have looked at the source for the CIniFile class, and source for its use. I have done everything apparent, but whenever I try to read a .ini file, it won't open because it can't find the file. I think it is an issue with my path. I have a "settings.ini" file in my root C: directory, and the string I use to specify it is "C:settings.ini". Is there something I have to initialize, or devices I have to map in order to get the app to recognize the path? I think I'm overlooking something simple, so hopefully helping me will be easy...

I wrote code to do this early on for MXM (since then, I've moved on to a more 'grown up' format, XML).... if I have time, I can dig it up and send it to you.

It does work, quite nicely.


E-mail me with your e-mail.
Logged