I need to scan an entire text file and I would like to know which is the best between copying the whole thing into memory and loading it part by part.
The file is not, or at least I don't think it could be, a large file, it is some sort of simple script for some simple tasks... (actually, it does not have a real goal except to make me discover a little more about programming)
Thanks to all who will answer this.