how to read files one by one from directory

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pritdongare
    New Member
    • Mar 2008
    • 1

    #1

    how to read files one by one from directory

    hiiiii,
    pritam here.

    i m doing xml parsing,,in dis i hav to take xml files one by one from folder and then parse them,,In this i won to know how to read files from folder.plz try to reply fast.
  • JosAH
    Recognized Expert MVP
    • Mar 2007
    • 11453

    #2
    Originally posted by pritdongare
    hiiiii,
    pritam here.

    i m doing xml parsing,,in dis i hav to take xml files one by one from folder and then parse them,,In this i won to know how to read files from folder.plz try to reply fast.
    Read the API documentation for the File class and pay special attention
    to the File.list() and File.listFiles( ) methods.

    kind regards,

    Jos (I typed this as fast as I could ;-)

    Comment

    Working...