|
| |
名片设计 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)"相关的教程: · JSP中读取远程机器的PROPERTIES文件和IP地址 · Javadoc 利弊分析(from IBM) · 扬扬的J2EE学习笔记(三)Components and Roles组件和角色 · Beginner: Using Servlets to display, insert and update records in database.(3) · 软件路上,Sun面临四重危机 |
| 快精灵印艺坊 版权所有 |
首页 |
||