So, taking a worst-case scenario of a 15,000 line file averaging 200 bytes/line, that's 3MB. Store it all in a hash structure and there'll be some overhead, but even if the program took 4MB RAM total that's not very significant on today's boxes.
OTOH, if you're running this on a PII-266 w/ 64MB RAM it'd be a bit much.