Yes, it works. But I was talking about the runtime in worst case scenarios.collectordave wrote:Just created file with lots of spaces with an 'a' at the end then searched for ' a' and it found it no bother.
I don't know if you want to perfect your algorithm or not. I am just trying to give you some hints.
You're totally right. Unfortunality I overlooked the part after the for-loop totally. Sorry for that.Changed buffersize to 5 and searched for '90' found no problem at address 9 in the file.