// Collection of code snippets by Arne Vajhøj 
// (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
import java.io.*;

public class OldReadLine {
   public static void main(String[] args) throws Exception {
      byte[] b = { 65, 13, 10, 66, 66, 10, 67, 67, 67, 13, 68, 68, 68 , 68 }; 
      ByteArrayInputStream bais = new ByteArrayInputStream(b);
      DataInputStream dis = new DataInputStream(bais);
      String line;
      while((line = dis.readLine()) != null) {
         System.out.println(line);
      }
   }
}
