"VenuGopal" <Ve*******@discussions.microsoft.com> wrote in message
news:9E**********************************@microsof t.com...
Hi,
i have a XML File... it is generated by the client.
I have to send it to the SERVER prgrm... how do i do it?
I am familier with how to send a Sting "value" or some "value" to the
Sever
using the tcpclient and the stream writer. This is fine.
But what if i need to send the Entire File?
The convert the entire file to a string. There are a number of ways to do
this, and since I've no clue what form your XML is in, I can't say for sure.
But if you just have a file, why not just open it in a StreamReader and read
the entire thing as a string?