Hi,
I got the following code:
public class FileDecrypt
{
public static void main(String[] pArgs) throws IOException
{
for(;
{
//Decrypt files
// insert into MS Access 2K
}
}
}
This program is to decrypt every files which is inside a folder. There r some problem I encounter where the user suddenly press CTRL-C and terminated the program and leave the file decrypting half way and also the MS Access 2K didn't close properly. I would like to get some Thread code to detect user input. If user press CTRL-C, the program try to finish decrypt all the files indide that directory then close close the MS Access 2K and then abort the program.
Pls help...............
kmthien
Idea will always be idea ! Unless you take action !
I got the following code:
public class FileDecrypt
{
public static void main(String[] pArgs) throws IOException
{
for(;
{
//Decrypt files
// insert into MS Access 2K
}
}
}
This program is to decrypt every files which is inside a folder. There r some problem I encounter where the user suddenly press CTRL-C and terminated the program and leave the file decrypting half way and also the MS Access 2K didn't close properly. I would like to get some Thread code to detect user input. If user press CTRL-C, the program try to finish decrypt all the files indide that directory then close close the MS Access 2K and then abort the program.
Pls help...............
kmthien
Idea will always be idea ! Unless you take action !