i need help with:

1) getting a string the user types in and using that string to open an input file.

2) reading that input file one character at a time to print out how many times a certain character appears in the input file.

any help is appreciated. thanks.