title: JAVA Help : Append file and remove last character
body: <p>am I still very new to java, only had one semester of it. I have my first internship and it isn't a programming internship, just a general IT internship Since it was only my first semester. 
  My boss does not know Java, nor does anyone in the building. He knew I had some basic programming experience and told me to take a stab at the problem he is having. He has a report that is saved and the very last line, the very last character of the report is a character turn symbol, and we need remove that because it is giving us problems on the website. 
  I am not sure if I am even on the right track, at this point I am just doing trial and error. Please help :D</p>
  
  <pre><code> public class RemoveChar {
  
      public static void main(String[] args) throws FileNotFoundException {
  
      // Variables and stuff
      Scanner keyScan = new Scanner(System.in);
      JFrame frameOne = new JFrame ("File Name");
      Scanner fileScan = new Scanner(System.in);
      String fileName;
  
      // Ask user for file name
      System.out.print("What is the file full file name? ");
      fileName = fileScan.nextLine();
  
      // Add .txt if the user forgets to put it in the prompt
      if (!fileName.contains(".txt"))
          fileName += ".txt";
  
      //Test to see if file exists
      File myFile = new File(fileName);
      if(!myFile.exists()){
          System.out.println(fileName + " does not exist. ");
          System.exit(0);
      }
  
      fWriter = new FileWriter("config/lastWindow.txt", true);
      /*while(fileName.hasNext()){
  
      }
      File 
      BufferedReader inputFile = new BufferedReader(new FileReader("C:\\" +        fileScan));
      //Scanner reader = new Scanner (inputFile);
      */
  
  
  
    }
  
  }
  </code></pre>