?
Solved

64k limit in ini file operations?

Posted on 1998-04-29
4
Medium Priority
?
271 Views
Last Modified: 2006-11-17
I'm trying to work with very large ini files and I seem to be hitting some type of limit.  I can't seem to read past a certain point in the files.  Any ideas/workarounds?
0
Comment
Question by:aphilips
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 4

Expert Comment

by:zsi
ID: 1434448
How about using a binary or text datafile instead?  I can understand your interest in using hte ini file for random access (am I correct?).  You can achieve the same functionality by storing your data in a regular text or binary file, reading the entries into a collection, and then accessing the data randomly by its key.  All pretty simple to do and it removes the size limitation that you are experiencing.

Hope this helps!

zsi
0
 

Author Comment

by:aphilips
ID: 1434449
No, I'm reading from large ini files... as in cdplayer.ini files that are huge... I'm reading from these ini files and putting it into a Jet db.  I don't need to write to the file, just read.  Short of manually splitting up the file into small chunks, or writing my own access routines, I am stuck.
0
 
LVL 2

Accepted Solution

by:
marti earned 200 total points
ID: 1434450
You still can use the standart VB methods for reading from text file. Load everything into arrays. It doesn't seem a big deal to manipulate those arrays.
Hope this will help.
0
 
LVL 4

Expert Comment

by:zsi
ID: 1434451
aphilips,

The answer that I gave you is still a valid solution.  Just use it for reading the files, since an ini file is just a text file in the first place.  In fact, if all you are doing is transferring the data to a Jet db, then you don't even have to bother with the collections.  Just read each line in and process it out accordingly.

If you email your ini file to me (zsi@aol.com), along with your database file, I'll even write the conversion for you.


0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Suggested Courses

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question