public static void run_spell_check(File dic, File doc, String option)  
	{
		// Creating a new SpellCheckerUtil object with the dictionary file
		SpellCheckUtil mySC = new SpellCheckUtil(dic);

		// Creating a list of misspelled words after checking spellcheking the document
		List<String> misspelledWords = mySC.spellCheck(doc);

		if (misspelledWords.size() == 0) 
			System.out.println("\nThere are no misspelled words in file " + doc + ".\n");
		else 
		{
			System.out.println("\nThere are " + misspelledWords.size() + " misspelled words in file " + doc + ".");

			if(option.equals("-p"))
			{
				for(String word : misspelledWords)
					System.out.println(word);
			}
			else if(option.equals("-f"))				
				try
			{
					FileWriter writer = new FileWriter("misspelled.txt");

					for(String word : misspelledWords)
						writer.write(word + "\n");
					
					writer.close();

					System.out.println("Please see misspelled.txt for a list of the words.");	
			} 
			catch (IOException e) 
			{
				System.out.println("Unable to create a file for the misspelled words!");
				return;
			}

			System.out.println("\nHave a nice day!\n");		
		}		
	}