Dont' think so, as you need a buffer to keep the line.

On Mon, Jan 9, 2012 at 11:47 AM, faif <faifgnu@gmail.com> wrote:
read(2) reads up to N bytes but doesn't stop on newlines. Brdline(2)
looks like a good candidate for that. Are there any functions
outside Bio that behave similarly?