public void leseFile()
{
BufferedReader in;
FileInputStream fr;
FileOutputStream fw;
String line;
try
{
fr = new FileInputStream("d:\\temp1\\abspacen.xml");
in = new BufferedReader(new InputStreamReader(fr, "UTF-8"));
fw = new FileOutputStream("d:\\temp2\\abspacen.xml");
Writer out = new OutputStreamWriter(fw, "ISO-8859-1");
while ((line = in.readLine()) != null)
{
out.write(line);
out.write("\n");
}
in.close();
out.close();
System.out.println("Fertig!");
}
catch (IOException e)
{
System.out.println("Fehler Beim Lesen der Datei: " + e);
}
}