Jump to content

  • Log In with Google      Sign In   
  • Create Account


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


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
2 replies to this topic

#1 Neophyte   Members   -  Reputation: 543

Like
Likes
Like

Posted 30 June 2000 - 01:30 AM

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~

Sponsor:

#2 Altmann   Members   -  Reputation: 122

Like
Likes
Like

Posted 30 June 2000 - 02:29 AM

Try using java.io.File.list()

Be reading you,
David

--
===
Am I the keeper of my brother ?


#3 Neophyte   Members   -  Reputation: 543

Like
Likes
Like

Posted 30 June 2000 - 03:34 AM

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~




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS