Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Read text files from a directory using java  RSS feed

 
rajkumar sound
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

For example i have 3 text file in a location called C:\DEMO,
all the three text files has time stamp in their names, the names of these files are 20150401103917000_M.txt, 20150402131208000_S.txt,20150330064916000_V.txt

Now the requirement is to read these text files from my java program, but the condition is one file is already read by java program, i need to exclude that already read file and read the remaining two files,

How i will achieve this?

 
Tony Docherty
Bartender
Posts: 3264
81
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How do you know which one to ignore. Is it the one with a given name, creation date, the oldest, the newest or something else altogether.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!