How can I send a String by a BufferReader
I want to replace that code :
BufferedReader stdIn = new BufferedReader(
new InputStreamReader(System.in));
By BufferedReader stdIn = new BufferedReader(STRING HERE);
How can I do that
Printable View
How can I send a String by a BufferReader
I want to replace that code :
BufferedReader stdIn = new BufferedReader(
new InputStreamReader(System.in));
By BufferedReader stdIn = new BufferedReader(STRING HERE);
How can I do that
I found StringReader / StringWriter but I can not see how can I send it via socket grrr
So your real question is how to send/receive data via sockets?
If so, the Socket class has the getOutputStream() and getInputStream() methods that you can wrap into the BufferedReader and the comparable Writer classes.
:)
Thx, that what I found yesterday but forget to tell here. :)