i1neal@exnet.iastate.edu (Neal Rauhauser -- ELT Computer Applications Group) (01/21/91)
I've had some awful funny problems with Class:TextFile, method:readLine() in Actor3.0. Apparently when there is a <cr> on byte N * 256 of a file readLine() ignores it and goes to the next <cr>. The code for this (buffered) method is included with the class and is not a primitive. Neal i1neal@exnet.iastate.edu
adw@otter.hpl.hp.com (Dave Wells) (01/21/91)
>From: i1neal@exnet.iastate.edu (Neal Rauhauser -- ELT Computer Applications Group) > I've had some awful funny problems with Class:TextFile, method:readLine() >in Actor3.0. Apparently when there is a <cr> on byte N * 256 of a file >readLine() ignores it and goes to the next <cr>. The code for this >(buffered) method is included with the class and is not a primitive. Indeed - the readline() implementation assumes for some reason that the <delimiter> instance variable is a single character. There's no reason that it should be - indeed the *default* value is CR_LF (2 chars), which gives the problem that you describe. It is possible (but fiddly) to recode the method so that it works correctly. Dave Wells