When reading a file in binary is there any way to have it stop at a delimiter such as '\n'. From what I've found you use read() but that only allows for the character array and the size of the array no delimiter. I was using getline but then when i switched to binary, that no longer worked so I assumed that since its binary, getline doesnt really get along with it.
I need to read it in binary and I need a way to search for a string within it. That's why I need to read line by line.
Any help that you can give is appreciated
Thanks,
...Dan