title: Convert InputStream to Flow
body: <p>I would like to read a file contents and emit a flow for every line of its contents. So, I have to implement a function with the following signature:</p>
  
  <pre class="lang-kotlin prettyprint-override"><code>fun InputStream.linesToFlow(): Flow&lt;String&gt;
  </code></pre>
  
  <p>Is there any way to implement this function?</p>