[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
tcpstream and strings
From: |
José Tavares |
Subject: |
tcpstream and strings |
Date: |
Sun, 2 Feb 2003 00:26:13 +0000 |
User-agent: |
KMail/1.5 |
I know this must be a very very simple question, but here it is:
I can send a string throw a tcpstream object using something like this
tcpstream tcp;
tcp << "Something like this" << endl;
but when I use the same scheme to read the message (something like tcp >> str,
str is a string object) and then print it out (using cout << str) only the
first word is read. How can I resolve this?
TIA,
Jose Tavares
- tcpstream and strings,
José Tavares <=