|
![]() |
名片设计 CorelDRAW Illustrator AuotoCAD Painter 其他软件 Photoshop Fireworks Flash |
|
Reading and Writing a Properties File // Read properties file. Properties properties = new Properties(); try { properties.load(new FileInputStream( "infilename")); } catch (IOException e) { } // Write properties file. try { properties.store(new FileOutputStream( "outfilename"), null); } catch (IOException e) { } Here is an example of the contents of a properties file: # a comment ! a comment a = a string b = a string with escape sequences /t /n /r // /" /\\\' / (space) /u0123 c = a string with a continuation line / contination line d.e.f = another string 返回类别: 教程 上一教程: Java入门知识 下一教程: java生成JPEG 图像文件 您可以阅读与"Reading and Writing a Properties File(From Sun)"相关的教程: · Netark FileManager 远程文件治理 · Java和javac这两个SUN公司的路盲 · Beginner: Using Servlets to display, insert and update records in database.(1) · Sun重申一许可 并发布俩新许可 · Operators and Assignments(1) |
![]() ![]() |
快精灵印艺坊 版权所有 |
首页![]() ![]() ![]() ![]() ![]() ![]() ![]() |