Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jun 12th, 2006, 10:18 PM   #1
Donnie
Newbie
 
Donnie's Avatar
 
Join Date: May 2006
Posts: 10
Rep Power: 0 Donnie is on a distinguished road
If You See This Help ME!! please!

how do i save and create data into an INI file??
Donnie is offline   Reply With Quote
Old Jun 12th, 2006, 10:29 PM   #2
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Donnie, please take the time to read the forum's rules/FAQ and a "How to Post..." thread. Subject lines should indicate something about your problem. All the new members in a frustrated panic say, "HELLLLLLLLLLLPPPPPP!!!!!!!!!!!!111111111111". Give us a break. Present your problem, your attempt at solving it (if you have one), or explain what you don't understand. Actually, a .ini file can have multiple meanings, one as simple as a plain text file.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Jun 13th, 2006, 12:25 AM   #3
Booooze
Expert Programmer
 
Booooze's Avatar
 
Join Date: Mar 2006
Location: Igloo
Posts: 710
Rep Power: 3 Booooze is on a distinguished road
Send a message via MSN to Booooze
if you want it as simple as a plain text file as dawei said, search the forums, the answer is already here.
Booooze is offline   Reply With Quote
Old Jun 13th, 2006, 1:02 AM   #4
melbolt
Professional Programmer
 
melbolt's Avatar
 
Join Date: Feb 2005
Location: PA, USA
Posts: 254
Rep Power: 4 melbolt is on a distinguished road
Quote:
Originally Posted by Donnie
how do i save and create data into an INI file??
the same way you would with a text file like the posters above me stated.

the answer is usually only a google search away
http://www.profsr.com/vb/vbless08.htm
__________________
I have never let my schooling interfere with my education. -Mark Twain-

Xbox live gamertag: melbolt
melbolt is offline   Reply With Quote
Old Jun 13th, 2006, 3:16 AM   #5
lectricpharaoh
SEXY SHOELESS GOD OF WAR!
 
lectricpharaoh's Avatar
 
Join Date: Jun 2005
Location: Wet west coast of Canada
Posts: 1,195
Rep Power: 5 lectricpharaoh will become famous soon enough
Look up 'file I/O' in your docs. You can use text streams (or whatever VB calls 'em) to do this, assuming there actually is a file. This is because for some (later) versions of Windows, some of the entries in certain .INI files are actually stored as registry keys instead. You might find using registry keys to be a cleaner solution, unless you want the user to manually edit settings with a text editor (regedit.exe scares many Windows neophytes).
__________________
And once again, Probability proves itself willing to sneak into a back alley and service Drama as would a copper-piece harlot.
- Vaarsuvius, Order of the Stick
lectricpharaoh is offline   Reply With Quote
Old Jun 13th, 2006, 12:41 PM   #6
Booooze
Expert Programmer
 
Booooze's Avatar
 
Join Date: Mar 2006
Location: Igloo
Posts: 710
Rep Power: 3 Booooze is on a distinguished road
Send a message via MSN to Booooze
regedit.exe scares many Windows neophytes


@Donnie
Scary at first, but if you tackle it, it is extremly useful for future reference. As Lectricparaoh said, if you want the suer to be able to change the settings manually, use a text file, else head for the registry. The only thing I ever used the regisry for, was startup procedures :p
Booooze is offline   Reply With Quote
Old Jun 13th, 2006, 6:09 PM   #7
KTiger
Newbie
 
KTiger's Avatar
 
Join Date: May 2006
Location: Narvik, Norway
Posts: 22
Rep Power: 0 KTiger is on a distinguished road
Quote:
Donnie:
how do i save and create data into an INI file??
I would suggest you make a parser-engine for INI-files, it's actually not so hard as it might sound..
Basically you need to know about; open/close/read/write to a file, for-loops, and mid$()
__________________
To sell your own books it's like selling a piece of your soul. Kim
KTiger is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 2:07 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC