1 2 Previous Next 21 Replies Latest reply: Dec 19, 2006 7:42 AM by 807599 RSS

    Need to store an array of files to a String

    807599
      Hi, I need to store an array of files "File dst" to a string, the following code is throwing an error. Could anyone please tell me how do I store my files "File dst" to the String "children". My code is:

      public static void renameFile(File dst) throws IOException
      {
           String[] children = dst.list();
           for (int i=0; i<children.length; i++)
           {
           
           }
      }
        1 2 Previous Next