I am trying to open and read a file using the input function.
This is the sample code which runs well:
fname = input(\'Enter the file name