示例#1
0
 public void CreateScript(string path)
 {
     FileWriter F = new FileWriter(path, false);
     try {
         string source = this.GetScript();
         F.Write(source);
     } finally {
         F = null;
     }
 }
示例#2
0
 public void CreateFile(string filename)
 {
     string filecode = "";
     foreach(string file in this.files) {
         filecode += this.getCode(file) + "\r\n";
     }
     FileWriter FW = new FileWriter(filename);
     try {
         FW.Write(filecode);
     } finally {
         FW = null;
     }
 }