private void testFileStream() throws IOException {
  Stream<String> fileLines=Files.lines(Paths.get("/Users/mkonda/Temp/tmp.txt"));
  fileLines.forEach(null);
  Path root=Paths.get("/Users/mkonda/Temp");
  int maxDepth=Integer.MAX_VALUE;
  BiPredicate<Path,BasicFileAttributes> filter=null;
  Stream<Path> pathStream=Files.find(root,maxDepth,filter);
  pathStream.forEach(null);
}

private void testFileStream ( ) throws IOException { Stream < String > fileLines = Files . lines ( Paths . get ( "/Users/mkonda/Temp/tmp.txt" ) ) ; fileLines . forEach ( null ) ; Path root = Paths . get ( "/Users/mkonda/Temp" ) ; int maxDepth = Integer . MAX_VALUE ; BiPredicate < Path , BasicFileAttributes > filter = null ; Stream < Path > pathStream = Files . find ( root , maxDepth , filter ) ; pathStream . forEach ( null ) ; }
creating a stream from a file
