Java tutorial
//package com.java2s; import java.io.BufferedWriter; import java.io.IOException; public class Main { public static void writeNode(BufferedWriter bw, String node) throws IOException { bw.write("\t" + node.replace("\n", "\n\t")); bw.newLine(); bw.newLine(); } }