in reply to Reading huge file content

Perhaps you would have better luck passing the file name and location to the generic function? For a file that large you may only be able to process parts of the file at a time.