wood burning stoves 2.0*
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
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: 19761
    
  20

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