Well, in my case, the file is big and the hash is relatively small... hence i chose it this way. Is there a better way to do it? I'm sure there must be, but just that i don't know them :(
I'll try to use seek and get to the beginning of the file and then post the complete code.
Update:
This did it: