[ad_1]
I'm trying to save a file via a text editor I made with swing GUI and it keeps making a new file instead of saving it into the original file.
I tried FilePrintStream:
FileOutputStream textWriter = new FileOutputStream(textFile, true);
byte[] myBytes = text.getText().getBytes();
textWriter.write(myBytes);
[ad_2]
لینک منبع