首页 > 代码库 > c How to Make an Ascii Picture.

c How to Make an Ascii Picture.

import java.io.*;

public class trans{
    public static void main(String[] args){
        try{
            File inFile = new File("D:/****/src.txt");
            File outFile = new File("D:/****/target.txt");
            
            FileReader fr = new FileReader(inFile);
            BufferedReader br = new BufferedReader(fr);
            
            FileWriter fw = new FileWriter(outFile);
            PrintWriter pw = new PrintWriter(fw);
            
            while(br.ready()){
                pw.println("\"" + br.readLine() + "\",");
            }
            
            pw.close();
        }catch(Exception e){}
    }
}

 

c How to Make an Ascii Picture.