I want my program to save the URLs, one at a time, to a file. These addresses must be saved in UTF format to make sure they are correct.
My problem is that the file is being overwritten all the time, and not attached:
DataOutputStream DOS = new DataOutputStream(new FileOutputStream(filen, true)); Count = 0; if (LinkToCheck != null) { System.out.println(System.currentTimeMillis() + " SaveURL_ToRelatedURLS d "+LinkToCheck.Get_SelfRelationValue()+" vs "+Class_Controller.InterestBorder); if (LinkToCheck.Get_SelfRelationValue() > Class_Controller.InterestBorder) { DOS.writeUTF(LinkToCheck.Get_URL().toString() + "\n"); Count++; } } DOS.close();
This code is NOT added, so how do I add it?
source share