Alexander Skwar <ASkwar at DigitalProjects.com> writes: > Yes, that's for the easy case of the readline loop. However, how could > I break up a file.write() or a map()? For a map call, you need to check inside the callback function for a flag. There is no way to get out of a file.write; you may try to use a non-blocking write operation. Regards, Martin