How to know the files that exist at a certain directory in Java?
I'm doing a project for a Java Networking course. It's something like an FTP client and server.
I need to know how to get the files that exist at a certain directory in the server so their names could be displayed in a GUI for the client to choose from.
I really need this, can anyone help me?
Thanks in advance.
Re: How to know the files that exist at a certain directory in Java?
Quote:
how to get the files that exist at a certain directory
The File class has methods that will return the files that are in a directory.