import java.io.*;
public class ASCIIconvertToScreen
{
    public static void main (String args[])
    {
	new ASCIIconvertToScreen ();
    }


    public ASCIIconvertToScreen ()
    {
	String inName = IO.inputString ("What is the name of the txt file with the ascii art? \n( don't include the .txt on the end)>> ");
	BufferedReader in;
	try
	{
	    in = new BufferedReader (new FileReader (inName + ".txt"));
	    String input = in.readLine ();
	    while (input != null)
	    {
		System.out.print ("System.out.println(\"");
		for (int i = 0 ; i < input.length () ; i++)
		{
		    if ((int) (input.charAt (i)) == 92)
			System.out.print ("\\\\");
		    else if ((int) (input.charAt (i)) == 34)
			System.out.print ("\\\"");
		    else
			System.out.print (input.charAt (i) + "");
		}
		System.out.println ("\");");
		input = in.readLine ();
	    }
	    System.out.println ("");
	    in.close ();

	}
	catch (IOException e)
	{
	    System.out.println ("Error opening file " + e);
	}
    }
}
