title: Counting a specific character in a file with Scanner
body: <p>I'm trying to write a program that prompts the user to enter a character, and count the number of instances said character appears in a given file. And display the number of times the character appears.</p>
  
  <p>I'm really at a loss, and I'm sorry I don't have much code yet, just don't know where to go from here.</p>
  
  <pre><code>import java.util.Scanner;
  import java.io.*;
  
  public class CharCount {
  
      public static void main(String[] args) throws IOException {
          int count = 0;
          char character;
  
          File file = new File("Characters.txt");
          Scanner inputFile = new Scanner(file);
  
          Scanner keyboard = new Scanner(System.in);
          System.out.println("Please enter a single character");
          character = keyboard.nextLine().charAt(0);  
    }
  }
  </code></pre>