to get all lines use readline method from stdout