2016-10-17 06:30:35 +02:00
|
|
|
/*
|
|
|
|
* To change this license header, choose License Headers in Project Properties.
|
|
|
|
* To change this template file, choose Tools | Templates
|
|
|
|
* and open the template in the editor.
|
|
|
|
*/
|
2016-10-26 15:03:33 +02:00
|
|
|
package Suche;
|
2016-10-17 06:30:35 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
* @author simonr
|
|
|
|
*/
|
|
|
|
import java.io.File;
|
|
|
|
|
2016-10-19 01:34:00 +02:00
|
|
|
public class Suche2 {
|
2016-10-17 06:30:35 +02:00
|
|
|
|
2016-10-26 15:03:33 +02:00
|
|
|
public static String filename;
|
2016-10-17 06:30:35 +02:00
|
|
|
|
|
|
|
public static void main(String[] args) {
|
|
|
|
|
|
|
|
File f = new File("./modpack/modpack");
|
|
|
|
File[] fileArray = f.listFiles();
|
|
|
|
|
|
|
|
if (fileArray != null) { // Erforderliche Berechtigungen etc. sind vorhanden
|
|
|
|
for (int i = 0; i < fileArray.length; i++) {
|
|
|
|
System.out.println(fileArray[i]);
|
|
|
|
filename = fileArray[i].toString();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|