I'm trying to cycle through a series of large XML files, pull out selected values, and write them to an SQLite database. My code works for smaller files, but crashes when I get to anything larger than about 1 GB.
I put the parsing into the following function:
function iparse(file) f = open(file) n = countlines(f) vals =
Array(ASCIIString,n,3) seekstart(f) c = 1 while !eof(f) try st =
parse_string(readline(f)
vals[c,1] = c += 1 catch next end end return vals
close(f)end
