c04145e8f459709137051b9334d50c84654c7837
[IRC.git] / Robust / src / Benchmarks / Spider / tests / generate.java
1 import java.io.*;
2
3 public class generate {
4     public static void main(String x[]) {
5         int MAX=100;
6         int current=0;
7         int currentref=1;
8         while(current<currentref) {
9             try {
10             String filename=current+".html";
11             FileOutputStream fos=new FileOutputStream(filename);
12             PrintStream ps=new PrintStream(fos);
13             int count=0;
14             while(currentref<MAX) {
15                 if ((count++)>2)
16                     break;
17                 String reffile=currentref+".html";
18                 ps.println("<a href=\""+reffile+"\">"+reffile+"</a>");
19                 currentref++;
20             }
21             current++;
22             fos.close();
23             } catch (Exception e) {e.printStackTrace();}
24         }
25     }
26
27
28 }