Code example for PrintStream

Methods: flush, println

0
		// TODO Auto-generated method stub 
				text.setText("Android Socket" + "\n");
				try { 
					telnet.connect("192.168.1.78", 1034);
					in = telnet.getInputStream();
					out = new PrintStream(telnet.getOutputStream());
					 
					 
					out.println("sendai1.\r\n");
					out.flush();
					 
					out.println(",O2f00\r\n");
					out.flush();
					System.out.println("done");
					 
			 
				} catch (Exception e) {
					e.printStackTrace();
				} 
		 
	}