import java.io.File;
import java.io.IOException;
import java.io.PrintWriter;
public class WriteDocFile {
public static void main(String args[]) throws IOException {
File witches = new File("C:/Documents and Settings/All Users/Desktop/test.doc");
PrintWriter out = new PrintWriter(witches);
char[] array0 = { 'O', 'c', 'o', 'p', 's', 'O' }, array1 = { 's', 't',
'i', 'l', 'l', '0' }, array2 = { 'e', 's', 'c', 'a', 'p', 'e',
'd', '0' };
String str0 = new String("chasing"), str1 = "Thieves";
out.write(str1);
out.print(" ");
out.write(array2, 0, 7);
out.println("");
out.write(array0, 1, 4);
out.print(" ");
out.write(array1, 0, 5);
out.print(" ");
out.write(str0);
out.flush();
}
}