Archived

This topic is now archived and is closed to further replies.

[java] Slightly OT (again): Getting directories?

This topic is 6409 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Here I am again This time I''m wondering about how to get a listing of the files/folders in a given directory with Java. I assume that, with Java''s platform-indepent policy, that the platform I''m developing on does not change the functions used. But if it does, I''m using Linux and Solaris. Again, any help at all is highly appreciated. -Neophyte ~Death awaits you all, with nasty, big, pointy teeth~

Share this post


Link to post
Share on other sites
Thank you!

Actually, I feel slightly stupid, because as soon as I saw your answer I checked my API-documentation and there it was, clear as day.
The problem, of course, with the API-docs, is that it''s very easy to find all the interesting information you want, provided you have a decent idea of where to begin in the first place.
Speaking for myself, I''m a pretty decent programmer, and while I''m not a wizz at Java I''m not completely helpless either. But I dont'' have all that much experience with it, so finding things in the API-docs is a bit of a drag. And as that''s more or less the only documentation I have for the moment (except a good book on Servlet-programming), things like this is a bit awkward to discover sometimes.

Ahm. This turned into a bit of a longer post than I had planned, but what the hey.

Anyway, as I said, thank you for the help I really appreciate it.
I''ll probably be back here with more innane questions, hope you don''t mind.

-Neophyte
~Death awaits you all, with nasty, big, pointy teeth~

Share this post


Link to post
Share on other sites