Just print an empty string into the file:
Code:PrintWriter writer = new PrintWriter(file); writer.print(""); writer.close();
|
making a vote list that resets every 24 hours
I want to change the: (name.toLowerCase())Code:public static void removeAllFromVoteList(String name) { bannedNames.remove(name.toLowerCase()); deleteFromFile("./Data/votes/Votelist.txt", name); }
into something that removes all names from the list... anyone know what to put there, yes I know i'm not a genius...
Thanks!
Just print an empty string into the file:
Code:PrintWriter writer = new PrintWriter(file); writer.print(""); writer.close();
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |