20 import java.io.InputStream;
22 import ca.uqac.lif.cep.Pullable;
23 import ca.uqac.lif.cep.UtilityMethods;
24 import ca.uqac.lif.cep.io.ReadLines;
34 public static void main(String[] args)
39 InputStream stream =
FileReader.class.getResourceAsStream(
"numbers.txt");
44 ReadLines reader =
new ReadLines(stream);
49 reader.addCrlf(
false);
52 Pullable p = reader.getPullableOutput();
60 System.out.printf(
"The event is %s\n", o);
62 UtilityMethods.pause(1000);
Read an input stream from a text file line by line and show the output.