编写UTF-8文件的辅助功能
//package com.nowjava;/**来自 nowjava - 时 代 Java**/ import java.io.FileNotFoundException; import java.io.PrintWriter; import java.io.UnsupportedEncodingException; public class Main { /** * Helper function to write files * * @param FileName * The file to write to * @param content * Content to write in the file */ public static void printFile(String FileName, String content) { PrintWriter writer; try { writer = new PrintWriter(FileName, "UTF-8"); writer.print(content); writ