An sync version of nodejs line reader