4 Replies Latest reply: Mar 28, 2007 5:36 PM by 800387 RSS

    FileInputStream

    807606
      Can I use Array element as input to FileInputStream like:

      String []Pages;
      Pages=new String[] {"Page_1.txt","Page_2.txt","Page_3.txt","Page_4.txt","Page_5.txt"};

      fin = new FileInputStream (Pages[k]);

      // where k is a loop counter