void saveScript ( ) throws IOException { // We'll always try to read it in with the default next time its loaded this . charset = ExtensionScript . DEFAULT_CHARSET ; try ( BufferedWriter bw = Files . newBufferedWriter ( file . toPath ( ) , charset ) ) { bw . append ( getContents ( ) ) ; } this . lastModified = file . lastModified ( ) ; }
Saves the latest contents into the configured file