forked from ChomeNS/chomens-bot-java
major fix fix fifixi xi fidhsuifty4372
This commit is contained in:
parent
c64973d0bf
commit
50916fdd21
1 changed files with 1 additions and 1 deletions
|
@ -84,7 +84,7 @@ public class PersistentDataUtilities {
|
||||||
|
|
||||||
// ? how do i clear the file contents without making a completely new writer?
|
// ? how do i clear the file contents without making a completely new writer?
|
||||||
// or is this the only way?
|
// or is this the only way?
|
||||||
writer = Files.newBufferedWriter(path, StandardOpenOption.WRITE);
|
writer = Files.newBufferedWriter(path, StandardOpenOption.TRUNCATE_EXISTING);
|
||||||
|
|
||||||
writer.write(string);
|
writer.write(string);
|
||||||
writer.flush();
|
writer.flush();
|
||||||
|
|
Loading…
Reference in a new issue