title: How to read .text file from remote system and then write it into array of string in Android?
body: <p>this is my code:
  i'm using ip address of my system which contain listofitems.txt file:</p>
  
  <pre><code>    try {
           Create a URL for the desired page
  String ipadd=ip.getText().toString();   
          URL url = new URL("http://192.168.1.2/listofitems.txt");
  
  
          // Read all the text returned by the server
      BufferedReader in = new BufferedReader(new InputStreamReader(url.openStream()));
          String str = in.readLine();
  
          String[] items = new String[]{
  
          items = str.split(",");
  
      in.close();
  
      } catch (MalformedURLException e) {
  
      } catch (IOException e) {
  
      }
  </code></pre>
  
  <p>I have tablet connected to system with wireless router(WLAN).
  please help!!! thank you!!!</p>