import java.math.*; import java.io.*; public class TextToXML{ public static void main(String arg[]){ try{ String text[]=new String[10]; FileOutputStream fout = new FileOutputStream("TextToXML.xml"); OutputStreamWriter out = new OutputStreamWriter(fout); InputStreamReader in= new InputStreamReader(System.in); BufferedReader bin= new BufferedReader(in); for(int i=0;i<10;i++) text[i]=bin.readLine(); out.write("\r\n"); out.write("\r\n"); for (int i = 0; i < 10; i++){ out.write(" "+i+":"+text[i]+""); } out.write(""); out.close(); }catch (IOException e){ System.err.println(e); } } }