Parsing Long files

Drogren
01-02-2002, 01:37 PM
Files in excess of 5000 lines put into an array, cause the program to stop prematurely. I am assuming that data is overflowing into the code portion.

The files are simple text files created from DumpACL. The file I currently have a problem with is 18,549 lines.

I have a master file, and a target file. I am attempting to compare both line by line.

the program works below 5000 lines.

Any suggestions?

Thanks.

Derek Stone
01-02-2002, 05:30 PM
Is the program crashing after you use the Open command, or after you begin reading the 5001st line?

Usually one compares files by reading in one line at a time from each file, comparing the strings to one another, and then repeating the process for the next line, using the same variable as the previous line, thereby avoiding a need for a lot of memory.

Good Luck
-cl

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum