Does anyone know if there is a function in java with takes as an argument a path of a directory and returns all the including files as array
Thank you
Printable View
Does anyone know if there is a function in java with takes as an argument a path of a directory and returns all the including files as array
Thank you
Not quite sure what you mean, but you are able to read/write objects from/to a file using serialization and object streams.
Eg. You could write an ArrayList x to file y, or read ArrayList x back from the file.
Discover the secrets of the Java Serialization API
Java Tutorial: Introduction to Object Serialization
Lesson 4: Serialization
See the API for File, in particular the listFiles method
Hello gvgenop,
Welcome to the Java Programming Forums.
Try doing a search.. Similar questions have been answered here before.
This will help you get started:
http://www.javaprogrammingforums.com...directory.html