troubleshooting Question

How do I read/write files?

Avatar of AirOgre
AirOgre asked on
Visual Basic Classic
7 Comments1 Solution162 ViewsLast Modified:
I'm new to Visual Basic 6. I'm trying to create a program that needs to read and write many files. One of which is the options (.ini) file. How can I read and write certain lines and settings in that file?
Ex. Line 22 of a .ini file:
Close to System Tray: True

Also, I have another file which will store information much like a database. The format would be [Customer #],[Customer Name],[Customer Location] with a separator between records.
For example:
[1029],[John Doe],[New York]|||[1030],[Don Joe],[California]

There would need to be many many lines of these, so how can I read all these for presentation in a table like format? I'm trying to create an Access 2002 like database except using Visual Basic to show forms, tables, and queries while also having the ability to run it in the system tray, give alerts at certain times, access other files, etc.

Thanks in advance.

PS: I'm very very new to VB, so please keep it simple(if possible) =) If not I'll be able to figure it out.
Éric Moreau
Senior .Net Consultant
Join our community to see this answer!
Unlock 1 Answer and 7 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 7 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros