im trying to match phone numbers so i could print them to a .txt file but im having a bit of trouble.
Thank you very much.
Use append mode:
FileWriter output = new FileWriter("result.txt", true); PrintWriter write = new PrintWriter(new BufferedWriter(output));
Use append mode: