Could you use something like this, or are you totally unsure of how many rows the array should have? (can't guess within 5,000 or so?)
It uses very little memory if you make the "count"...
Type: Posts; User: Adak
Could you use something like this, or are you totally unsure of how many rows the array should have? (can't guess within 5,000 or so?)
It uses very little memory if you make the "count"...
It might not be standard C, but the OS seems like a good place to get the file size.
DID YOU SAY YOUR LINE LENGTHS WERE PREGIVEN AT 200 CHARS?
A-L-W-A-Y-S 200 chars? I'll bet you could find a relationship between a file with x number of lines:
x = file_size in bytes / 200...
Your #1 idea was fine, but for external files (not already loaded into a data struct), merge sort seems very natural to use - and it doesn't care what the size of the file is.
"puffers"?? I've...