Send an XML document with Socket to convert the generated XML document into a word stream output

zhaozj2021-02-16  104

Socket C = New Socket (Host, Port)

PrintWriter PW = New PrintWriter (New OutuputStreamWriter (C. GetOutputStream ()), TRUE);

FILE F = New File (XML);

BufferedReader Br = New BufferedReader (New FileReader (f));

String line;

While (line = br.readline ())! = null)

PW.Println (line);

PW.Close ();

br.close ();

转载请注明原文地址:https://www.9cbs.com/read-14174.html

New Post(0)