I want to use
File f = new File("C:");
to make an ArrayList with the contents of the folder.
I am not very good with buffered readers, so please tell me if that is better.
Here's the code I have so far:
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
public class buffered_read {
public static void main(String[] args) {
File f = new File("C:");
int x = 0;
boolean b = true;
File list[];
while(b = true){
}
}
}
Thanks,
obiedog
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…