标签:
import java.io.File; import java.io.FileWriter; import java.io.IOException; public class aaa { public static void main(String[] args) { File a = new File(Class.class.getClass().getResource("/").getPath() + "/notepad.exe"); try { String content = "10.10.6.6"; FileWriter writer = new FileWriter(a.getAbsolutePath(), true); writer.write(content); writer.close(); System.out.println("成功写入文件内容!"); } catch (IOException e) { e.printStackTrace(); } } }
JAVA向EXE文件尾追加配置信息,用于解决局版客户端的程序IP配置问题
标签:
原文地址:http://www.cnblogs.com/littlehb/p/4825133.html