import java.io.*; import java.util.Scanner; public class test6 { public static void main(String[] args) throws Exception{ PrintStream outChannel = new PrintStream(new FileOutputStream("test/testfile1.txt")); // test must be already in the current directory // String[] dic = new String [10]; for (char i="a"; i<"z"; i++) { String[i]=(char) i; } outChannel.println("\tHELLO"); outChannel.close(); // it is good to keep this to make my method tidy. } }