Can anyone tell me how can I do this?
This will also work:
with open("filename") as fileObj: for line in fileObj: for ch in line: print(ch)
It goes through every line in the the file and every character in every line.