FMB/src/Suche/Suche2.java

31 lines
724 B
Java
Raw Normal View History

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.
*/
package Suche;
2016-10-17 06:30:35 +02:00
/**
*
* @author simonr
*/
import java.io.File;
public class Suche2 {
2016-10-17 06:30:35 +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();
}
}
}
}