import java.io.*;
public class File_Text {
public static void main(String[] args) throws IOException {
fun1();
}
public static void fun1()
{
File f=new File(fun());
String[] names=f.list();
for(String name:names)
{
System.out.println(name);
}
}
public static String fun()
{
File []fs=File.listRoots();
for(File f:fs)
{
System.out.println(f);
}
return fs.toString();
}
}
|
|