日期:2014-05-20 浏览次数:20749 次
import java.util.Properties; import java.io.*; public class PropertiesFile { public static void main(String[] args) throws Exception { Properties settings=new Properties(); settings.store(new FileOutputStream("count.txt"),"Program is used:"); settings.load(new FileInputStream("count.txt")); } }
import java.util.Properties; import java.io.*; public class Notepad{ public static void main(String[] args) throws Exception { Properties settings=new Properties(); settings.store(new FileOutputStream("count.txt"),"Program is used:"); settings.load(new FileInputStream("count.txt")); } }
------解决方案--------------------