• Welcome to Valhalla Legends Archive.
 

Deleting lines in an INI file

Started by Topaz, August 24, 2005, 03:25 AM

Previous topic - Next topic

Topaz



Yegg

Or you could make your own function for this. You could append all lines (or characters) to an array and inside the array edit out any lines that you must. Then for each line (or character), write them back to the file.

MyndFyre

...which would probably be entirely less efficient than WritePrivateProfileString.
QuoteEvery generation of humans believed it had all the answers it needed, except for a few mysteries they assumed would be solved at any moment. And they all believed their ancestors were simplistic and deluded. What are the odds that you are the first generation of humans who will understand reality?

After 3 years, it's on the horizon.  The new JinxBot, and BN#, the managed Battle.net Client library.

Quote from: chyea on January 16, 2009, 05:05 PM
You've just located global warming.

Warrior

Would also defeat the purpose of an INI file (prevent writing to a file yourself, as opposed to having settings which are editable whenenver)
Quote from: effect on March 09, 2006, 11:52 PM
Islam is a steaming pile of fucking dog shit. Everything about it is flawed, anybody who believes in it is a terrorist, if you disagree with me, then im sorry your wrong.

Quote from: Rule on May 07, 2006, 01:30 PM
Why don't you stop being American and start acting like a decent human?

Topaz

wtf, VB6 is telling me that Null is invalid, and yet it says I can do it in MSDN!

>confusion

MyndFyre

You should use 0 instead of vbNull and pass it as an integer.
QuoteEvery generation of humans believed it had all the answers it needed, except for a few mysteries they assumed would be solved at any moment. And they all believed their ancestors were simplistic and deluded. What are the odds that you are the first generation of humans who will understand reality?

After 3 years, it's on the horizon.  The new JinxBot, and BN#, the managed Battle.net Client library.

Quote from: chyea on January 16, 2009, 05:05 PM
You've just located global warming.

UserLoser.

Or use vbNullString like you probably should be?