title: How to download/read html file via ftp url?
body: <p>I am having trouble getting the html text from this html file via ftp. I use beautiful soup to read an html file via http/https but for some reason I cannot download/read from an ftp. Please help!</p>
  
  <p>Here is the url.
  <a href="ftp://ftp.legis.state.tx.us/bills/832/billtext/html/house_resolutions/HR00001_HR00099/HR00014I.htm" rel="nofollow">a link</a></p>
  
  <p>Here is my code so far.</p>
  
  <pre><code>BufferedReader reader = null;
  String total = "";
  String line;
  ur = "ftp://ftp.legis.state.tx.us/bills/832/billtext/html/house_resolutions/HR00001_HR00099/HR00014I.htm"
  try {
      URL url = new URL(ur);
      URLConnection urlc = url.openConnection();
      InputStream is = urlc.getInputStream(); // To download
      reader = new BufferedReader(new InputStreamReader(is, "UTF-8"));
          while ((line = reader.readLine()) != null)
              total += reader.readLine();
  
  } finally {
      if (reader != null) 
          try { reader.close(); 
          } catch (IOException logOrIgnore) {}
  }
  </code></pre>