Solved

64k limit in ini file operations?

Posted on 1998-04-29
4
259 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
  • 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 100 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

912 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now