The code is suppose to recieve a file, & replace it with another (suppose to be an app also when I recompile) But when I compile I get errors, to be honest I'm not sure if the code is correct, but here is the code & error
import java.io.InputStream; import java.io.FileReader; import java.io.PrintWriter; import java.util.*; public class Replacer { public static void main(String[] args) throws IOException { String origFile = args[0]; File inputFile= new File("\AppData\Roaming\.minecraft\bin\minecraft.jar\title\csplashes.txt"); Scanner input= new Scanner ("\AppData\Roaming\.minecraft\bin\minecraft.jar\title\comma.txt"); while(input.hasNextLine()) { String aLine= input.nextLine(); aLine= new StringBuffer(aLine).change().toString(); System.out.println(aLine); } input.close(); } }
error
Microsoft Windows [Version 6.0.6001] Copyright (c) 2006 Microsoft Corporation. All rights reserved. C:\Users\Owner>javac C:\Users\Owner\Desktop\Replacer.java C:\Users\Owner\Desktop\Replacer.java:13: illegal escape character File inputFile= new File("\AppData\Roaming\.minecraft\bin\minecraft.jar\ti tle\csplashes.txt"); ^ C:\Users\Owner\Desktop\Replacer.java:13: illegal escape character File inputFile= new File("\AppData\Roaming\.minecraft\bin\minecraft.jar\ti tle\csplashes.txt"); ^ C:\Users\Owner\Desktop\Replacer.java:13: illegal escape character File inputFile= new File("\AppData\Roaming\.minecraft\bin\minecraft.jar\ti tle\csplashes.txt"); ^ C:\Users\Owner\Desktop\Replacer.java:13: illegal escape character File inputFile= new File("\AppData\Roaming\.minecraft\bin\minecraft.jar\ti tle\csplashes.txt"); ^ C:\Users\Owner\Desktop\Replacer.java:13: illegal escape character File inputFile= new File("\AppData\Roaming\.minecraft\bin\minecraft.jar\ti tle\csplashes.txt"); ^ C:\Users\Owner\Desktop\Replacer.java:14: illegal escape character Scanner input= new Scanner ("\AppData\Roaming\.minecraft\bin\minecraft.jar \title\comma.txt"); ^ C:\Users\Owner\Desktop\Replacer.java:14: illegal escape character Scanner input= new Scanner ("\AppData\Roaming\.minecraft\bin\minecraft.jar \title\comma.txt"); ^ C:\Users\Owner\Desktop\Replacer.java:14: illegal escape character Scanner input= new Scanner ("\AppData\Roaming\.minecraft\bin\minecraft.jar \title\comma.txt"); ^ C:\Users\Owner\Desktop\Replacer.java:14: illegal escape character Scanner input= new Scanner ("\AppData\Roaming\.minecraft\bin\minecraft.jar \title\comma.txt"); ^ C:\Users\Owner\Desktop\Replacer.java:14: illegal escape character Scanner input= new Scanner ("\AppData\Roaming\.minecraft\bin\minecraft.jar \title\comma.txt"); ^ 10 errors C:\Users\Owner>