
pieter1.552493597747965E12 asked a question.
.ini file problem
I'd like to add just a keyword to a .ini file without the = sign
I'm using the INI file changes section in DevStudio
if I add a keyword e.g. "stopsign" without a value it just puts the following line into the .ini file.
stopsign=
I don't want the equals sign. just the word "stopsign".
any ideas?
cheers,
- P
cheers,
- P
I'd like to add just a keyword to a .ini file without the = sign
I'm using the INI file changes section in DevStudio
if I add a keyword e.g. "stopsign" without a value it just puts the following line into the .ini file.
stopsign=
I don't want the equals sign. just the word "stopsign".
any ideas?
cheers,
- P "
What you describe is file I/O, but it's not an INI file. As for custom action, thats the way to go, but make sure you test for various scenarios. I.E. if you uninstall does it remove stopsign. If yuo install multiple times does it create multiple stopsign. If stopsign already exist does it replace it or add to it? Just things to think about.
Typically the kind of file you see something like this is your hosts and services file or config.sys / autoexec.bat.
It has an INI file for each chip type, which just has library locations in the INI file. Crappy designed software...
e.g.
[SymbolLibraries]
$(SCHDIR)
$(CWD)
$(XILINX)/spartan2/data/symbol/spartan2.lib
thanks,
- P