title: Getting data from php file in my Android java class using bufferreader
body: <p>I am getting data from php file in android java class using </p>
  
  <pre><code> BufferedReader reader = new BufferedReader(new 
   InputStreamReader(con.getInputStream()));.
  </code></pre>
  
  <p>This code is in my php file is</p>
  
  <pre><code>echo "abc";
  echo "xyz";
  </code></pre>
  
  <p>This is the code of my java file.</p>
  
  <pre><code>  BufferedReader reader = new BufferedReader(new InputStreamReader(con.getInputStream()));
          String line = null;
          Complete_line = null;// Read Server Response
          while ((line = reader.readLine()) != null) {
              System.out.println(line);
              break;
          }
  </code></pre>
  
  <p>But when I read from Buffer reader it will read a whole one line, or it will print "line" string as "abcxyz". But I want them as two lines as they are two different lines in the PHP file.</p>