//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();
}
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
-
- Posts: 47
- Joined: 2007-01-03 12:24