Hey guys if anyone feels like helping me I would be soooo greatful I have no idea how to do this.....
Write a program that gets the name of a file from the user. The program will open the file specified by the user and, reading one character at a time, count the number of times each 2-gram (also called a bigram)of letters (ignore case) is encountered. The program will then write a file that has the same name but uses the extension .ngram. The information that is written to the file will also be displayed on the screen. I have no idea how to do it and our teacher isn't much help.. please?
Write a program that gets the name of a file from the user. The program will open the file specified by the user and, reading one character at a time, count the number of times each 2-gram (also called a bigram)of letters (ignore case) is encountered. The program will then write a file that has the same name but uses the extension .ngram. The information that is written to the file will also be displayed on the screen. I have no idea how to do it and our teacher isn't much help.. please?