Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Write the maximum number to a file */
- public static void writeToFile(String path, int maxNumber) throws IOException {
- File file = new File(path);
- FileWriter fw = new FileWriter(file);
- fw.write(Integer.toString(maxNumber));
- fw.close();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement