Subj : long lines in a file To : Michael Preslar From : Scott Little Date : Sat Dec 17 2005 08:27 am [ 15 Dec 05 16:15, Michael Preslar wrote to All ] MP> What would you guys suggest as the best way to handle such situations? MP> blockread() then parse 255 characters at a time? I assume ansi_write_line is doing something with the ANSI strings (local emulation, for eg), therefore you'll need to either pass the entire line in one call, or tokenise (?) the input first. Otherwise you'll end up breaking ANSI sequences into parts that won't be interpreted properly across calls. As long as you have all the source, it'd be easiest to modify ansi_write_line to accept a buffer instead of a string, since it probably already does all its own ANSI parsing. Rename it ansi_write_buff and make ansi_write_line a frontend (convert string to buff). So yes, you're going to have to blockread, but you'll have to loop it to return a complete buffer for each line. -- Scott Little [fidonet#3:712/848 / sysgod@sysgod.org] --- GoldED+/W32-MINGW 1.1.5-b20051022 * Origin: Cyberia: 100% Grade "A" mansteak baby. (3:712/848) .