Skip to content
Mahmoud Ben Hassine edited this page Nov 8, 2015 · 9 revisions

cat

Synopsis

Create a UnixStream from the standard input or a file.

Example

// create an infinite UnixStream from the standard input
UnixStream<String> stdin = UnixStream.cat(); 

// create a UnixStream of lines from the file named "input.txt"
UnixStream<String> lines = UnixStream.cat("input.txt"); 
Clone this wiki locally