in reply to slow file slurping
I guess I would expect different behavior. Those two snippets aren't doing the same thing. The first is reading the file into one array, then appending that array onto another one. The second just reads into an array, overwriting the previous contents. In fact, in the second program, you aren't getting a concatenation of the two files at all.
Update: what repellent said :)
|
|---|