This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Java in General and the fly likes Read file from directory, update contents of the each file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Reply locked New topic
Author

Read file from directory, update contents of the each file

Dhan Priyan
Greenhorn

Joined: May 10, 2009
Posts: 12
hai,
I could not understand how to debug the error i have now.
target
1- read the files from directory // i able ot do this part
2- for each file
for each file read the content & compare with the existing List & update the list // i able to do this part

when i try to combine both parts , i got some following error


run:
E:\java\check\100130.ixf
Error: children[i] (The system cannot find the file specified)
BUILD SUCCESSFUL (total time: 2 seconds)


i can see from the code that children[i] only gives the error when i use that in the second part of the code.

can any one help me on this??
Thanks
Priyan


the original code
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19649
    
  18

Please Use One Thread Per Question. This is basically the same question as this one.

One hint though: Are you sure you want those quotes there?


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Read file from directory, update contents of the each file
 
Similar Threads
Compare two ArrayList
to read lines inside brackets
Error printing out from a read in file.
read the contents of the Directory & then read a file from the directory
Regarding reading a file in a jsp