using System; using System.Collections.Generic; using System.Text; using System.Xml; using System.IO; namespace ConfigMgrTest { public class SystemConfig { #region"基本操作函数" /// <summary> /// 得到程序工作目录 /// </summary> /// <returns>…
背景:java读取xml文件,xml文件内容只有“<?xml version="1.0" encoding="UTF-8"?>”一行 java读取该xml文件时,报“org.xml.sax.SAXParseException: Premature end of file”错误. java解析xml文件时抛出异常: org.xml.sax.SAXParseException: Premature end of file.at com.sun.org.apa…
引用:http://addiwang.blog.163.com/blog/static/118130772011221114230288/ Air的文件操做主要涉及两个类,FIle和FileStream.一般来说我们不会直接以文本形式保存文件,那样的内容不易于修改,所以这里我以 xml 文件为例. Note: 下面所有的function可以直接复制到你的代码中运行 1.创建新文件. public function createFileDemo():void{ var file:File = Fi…