Skip to content

Commit d049e6f

Browse files
committed
deletion of redundant files
1 parent 4f233dc commit d049e6f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/self_encryption/Encryptor.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,5 +53,12 @@ public void encrypt(String src,String trgt)throws Exception
5353
//close the files
5454
fin.close();
5555
fout.close();
56+
//deleting the source file
57+
File file=new File(src);
58+
if(file.delete()){
59+
System.out.println("Source file - "+src+" deleted successfully!!!");
60+
}else{
61+
System.out.println("Failed to delete.");
62+
}
5663
}
5764
}

0 commit comments

Comments
 (0)