stringtofile.java

来自「基于Java的地图数据管理软件。使用MySQL数据库管理系统。」· Java 代码 · 共 39 行

JAVA
39
字号
package net.aetherial.gis.test;

import java.io.File;
import net.aetherial.gis.surface.CreateFile;

/**
 * <p>Title: </p>
 *
 * <p>Description: </p>
 *
 * <p>Copyright: Copyright (c) 2004</p>
 *
 * <p>Company: </p>
 *
 * @author not attributable
 * @version 1.0
 */
public class StringToFile {
  private String path = "";
  private String n = "";
  public StringToFile() {
  }
  public StringToFile(String savedPath) {
    this.path = savedPath;
  }
  public void setString(String n){
    this.n = n;
  }
  public void run(){
    CreateFile cf = new CreateFile(new File(path));
    cf.setEncode("GB2312");
    cf.memoryToFile(n);

  }
  public static void main(String[] args) {
    StringToFile stringtofile = new StringToFile();
  }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?