Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 4 of 4

Thread: hallo

  1. #1
    Junior Member
    Join Date
    Jan 2011
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default hallo

    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


  2. #2
    Forum Squatter newbie's Avatar
    Join Date
    Nov 2010
    Location
    North Wales
    Posts
    661
    My Mood
    Stressed
    Thanks
    28
    Thanked 115 Times in 106 Posts
    Blog Entries
    1

    Default Re: hallo

    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
    Last edited by newbie; January 9th, 2011 at 07:04 AM.

  3. #3
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,266
    Thanks
    176
    Thanked 821 Times in 764 Posts
    Blog Entries
    5

    Default Re: hallo

    See the API for File, in particular the listFiles method

  4. #4
    mmm.. coffee JavaPF's Avatar
    Join Date
    May 2008
    Location
    United Kingdom
    Posts
    3,336
    My Mood
    Mellow
    Thanks
    258
    Thanked 287 Times in 225 Posts
    Blog Entries
    4

    Default Re: hallo

    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
    Please use [highlight=Java] code [/highlight] tags when posting your code.
    Forum Tip: Add to peoples reputation by clicking the button on their useful posts.

    Looking for a Java job? Visit - Java Programming Careers

Similar Threads

  1. Hallo/Titko
    By Titko in forum Member Introductions
    Replies: 0
    Last Post: January 15th, 2010, 11:07 AM