title: How to download a text file via FTP and read the contents to a string
body: <p>This is re-worded from a previous question (which was probably a bit unclear).</p>
  
  <p>I want to download a text file via FTP from a remote server, read the contents of the text file into a string and then discard the file. I don't need to actually save the file.</p>
  
  <p>I am using the Apache Commons library so I have:</p>
  
  <pre><code>import org.apache.commons.net.ftp.FTPClient;
  </code></pre>
  
  <p>Can anyone help please, without simply redirecting me to a page with lots of possible answers on?</p>