static void updateFile(String file, String content) { File(file).writeAsStringSync(content); print('File updated: $file'); }