If you are going to load a 10 gb text file then you better have more then 10 gb ram. As copeg said, it is better to read it dynamically.