Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

FileOutputStream & BufferedOutputStream - problem with c

Programming languages, Coding, Executables, Package Creation, and Scripting.
Post Reply
Message
Author
j6df
Posts: 9
Joined: 2006-08-30 17:37

FileOutputStream & BufferedOutputStream - problem with c

#1 Post by j6df »

//way it not change the xml?
try {
OutputStream fout = new FileOutputStream("data.xml");
OutputStream bout = new BufferedOutputStream(fout);
OutputStreamWriter o = new OutputStreamWriter(bout);

o.write("<?xml version=\"1.0\" ");
o.write("encoding=\"UTF-8\"?>\n");
o.write("<book>\n");
o.write("<person>\n");
o.write("<first>\n");
o.write("yoni");
o.write("</first>\n");
o.write("</person>\n");
o.write("</book>\n");

o.flush();
o.close();
} catch (Exception e) {
e.printStackTrace();
}

begatelles
Posts: 47
Joined: 2007-01-03 12:24

#2 Post by begatelles »

I'm sorry, but isn't that java code you got there?

Post Reply