Python program to read character by character from a file
Given a text file. The task is to read the text from the file character by character.
Parameters: An integer value specified the length of data to be read from the file.
Return value: Returns the read bytes in form of a string.
Examples 1: Suppose the text file looks like this.
Example 2: REading more than one characters at a time.