Vivek,
The numberp error you got was not because of a file size, but because one of your functions assumed it was using a number and it was passed something else (ie. list, string, ...). If you could post your code I'm sure someone could help you figure it out.