I need to input multiple files from directory
but how to do it for any file name? If I do not know the file name
So I can pass one by one file to thread?
int 1 = 0;
while(true)
{
String name = "Lab3File"+i+".dat";
File file = new File(name);
if(file.exists())
{
try
{
Thread thread = new Thread(new InnerClass(file));
thread.start();
thread.join();
}
catch(InterruptedException ie)
{
}
}
else
{
break;
}
i++;
}