import java.io.File; import java.io.PrintWriter; public class wow { public static void main (String[] args)throws Exception{ for (int i = 1; i > 0; i++){ File wow = new File("C:/Users/Patrick/Desktop/wow" + i + ".txt"); PrintWriter wowOutput = new PrintWriter(wow); wowOutput.print("hi"); wowOutput.close(); } } }