I am writing a code that accepts a list of files as an input. I am doing stress testing and an error occurs if there are a lot of files as an input.
My main function accepts an array of Strings as an input.
public static void main(String[] args)
I have around 200 files as an input. My args accepts input in this format:
-f <file path>
At one point on the list of files, Java will throw a File Not Found exception because it gets an incorrect path. There is always only one character missing. And the preceding file entries are read correctly.
I tried to get the length of the string when one character got missing, and it is always on 8090th character.
Example: If I have a list of files in a nested directory. My input will be something like this. -f test\test1\test1_test2\test1_test2_test3\test3_test4.txt
Repeated inputs of this kind would result to:
-f test\test1\test1_test2\test1_test2_test3\test3_test4.txt
...
-f test\test1\test1_**tst2**\test1_test2_test3\test3_test4.txt
...
-f test\test1\test1_test2\test1_test2_test3\test3_test4.txt
There is a missing "e" which should be the 8090th character. But the next file entries are being read correctly. What am I missing?