Hi i recently asked the question on how i could read files in from a directory which i specify. What has been done is...
The file names have been read from a directory and stored in an array of type string. I then iterate through the array using a for loop to print each file name in the array to an external "txt" file. But when i open the txt file only about 180 file names have been written to it when in fact the array holds around 390 file names. ( which i checked using the static variable length in array)
Why doesnt all the file names output to the external file?
Note: For outputting to an external file i am using a java.io.FilerWriter. Could it be this?
Initially i thought it could be because i am using an array, so instead i used another collection called the treeset, but this has the same effect to the program.
Anyone know why, and how i may resolve this?