file1 = null;
file2 = null;
?
what exactly do you mean by 'delete the strings'?
stultuske
Posting Sensei
3,137 posts since Jan 2007
Reputation Points: 1,114
Solved Threads: 433
you can simply assign null value to the variable string variable = ""; after the data has been merged.
47pirates
Junior Poster in Training
88 posts since Dec 2009
Reputation Points: 19
Solved Threads: 1
do keep in mind though,
String a = "";
is not the same as:
String a = null;
stultuske
Posting Sensei
3,137 posts since Jan 2007
Reputation Points: 1,114
Solved Threads: 433
this has nothing to do with the String objects.
you should check out the delete method of the File class.
stultuske
Posting Sensei
3,137 posts since Jan 2007
Reputation Points: 1,114
Solved Threads: 433
Hi Thanks for your reply.I have tried by assigning string file1 ="";
But its not working.
that's because manipulating a String object has nothing to do with what you try to do.
read my last post.
stultuske
Posting Sensei
3,137 posts since Jan 2007
Reputation Points: 1,114
Solved Threads: 433
no, I'm saying whether and how you have a filename stored has nothing to do with whether there (still) is a physical file on your hard drive.
stultuske
Posting Sensei
3,137 posts since Jan 2007
Reputation Points: 1,114
Solved Threads: 433