• 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

Reading all files from a folder

 
Ranch Hand
Posts: 851
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

I am working with CV parsing project. I finish all the requirements and my code is reading the file, parsing and converting into HTML.

There are some previous CVs uploaded in one folder on the server. I want to read all files of this folder but don't know from where I start.

How can I read these 5K+ files with duplicate check with one program?

Best regards
 
Sheriff
Posts: 3063
12
Mac IntelliJ IDE Python VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm not clear what the problem is here. You know how to read one file, so how is reading 5000 any different? Is it that reading so many files would take a really long time? There's no easy solution to that. You can use a profiler ... a tool that will show where your program runs slowly or uses too much memory. That might make the processing of each file a bit faster.

On the other hand, maybe you're asking about how to implement a duplicate check. That's a bit too vague for me to even guess at. You'd have to give us more information on what you mean for us to be able to help you there.
 
Marshal
Posts: 28193
95
Eclipse IDE Firefox Browser MySQL Database
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You start with the listFiles() method of the java.io.File class.
 
Farakh khan
Ranch Hand
Posts: 851
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks all for helping.
 
reply
    Bookmark Topic Watch Topic
  • New Topic