Subj : Re: long lines in a file To : Sean Dennis From : Michael Preslar Date : Fri Dec 16 2005 04:46 pm Re: Re: long lines in a file By: Sean Dennis to Michael Preslar on Fri Dec 16 2005 03:44 pm > MP> What would you guys suggest as the best way to handle such > MP> situations? blockread() then parse 255 characters at a time? > > ...or maybe you could write a procedure to parse the ANSI codes "on the fly" > that way you can just read everything in one character at a time, but parse > ANSI as it comes in. > > I don't know much about blockread, but hope this might help somehow. Character by character would be waaaay to slow. Im thinking that I'll have to: repeat blockread(f,buf,2048); s = copy(buf,1,255); ansi_write_line(s); until eof(f); or something. --- SBBSecho 2.11-Win32 * Origin: mount_z.synchro.net - Home of Lord/* (1:275/112) .