So, I am creating a mobile application using j2me and lwuit. In this application, the user will open the file.
My question is how to get the list of files in my jar application.
Example: inside the res folder there is:
File1.fl, File2.fl, File3.fl,
We can open a single file using the getResourceAsStream()
function. But how do I get a list of file names inside a folder.
I came across FileConnection
, but it seems that it is used to access files on the local phone.
In java, we can do this with the File
class. Anyone can help me with these ... Thanks guys ..
source share