Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within I/O and Streams
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
I/O and Streams
Can multiple files be read from a path
Pradeep Bhat
Ranch Hand
Posts: 31
1
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi,
I am stuck up with the following problem.
I have a folder with a number of xml files.(New xml files can be added any time).
I need to read the files one by one and use then for my operations.
Can this be done ?
Jim Yingst
Wanderer
Posts: 18671
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Well, sure. Use File.listFiles() to list the contents of a single directory. For each file, open an InputStream or Reader the same way you would for any other file. Have you read the
Java
Tutorial on Basc I/O?
"I'm not back." - Bill Harding,
Twister
Pradeep Bhat
Ranch Hand
Posts: 31
1
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I have just begun reading Java Tutorial on Basic I/O.
Thanks for the help Jim.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
importing one xml in another
reading the xml files thru java
How to prepare for Interview to pass
How to access non class files in a JAR
Suggest good books
More...