Solved

64k limit in ini file operations?

Posted on 1998-04-29
4
262 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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Visual Basic Excel Formatting error 4 127
Copy a row 12 64
Protecting vb6 & .Net code Obfuscation 18 152
Send outlook email from VBS Script 2 42
Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

828 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