Script
#!/usr/local/bin/python3.5
print()
specify_file = input("Enter the filename along with the full path: ")
file = open(specify_file, 'rt')
character_capture = file.read()
print()
print("Contents of the file")
print("--------------------")
print()
print(character_capture)
print()
print()
print("The number of characters in the file: ", len(character_capture))
print()
Execution
Enter the filename along with the full path: /Python-scripts/Memorable-Tests/Old-Trafford-1990-K25.txt
Contents of the file
--------------------
14th Aug 1990. The second Test of the series between England and India being played in Old Trafford.
India, already one down in the series after a heavy defeat at Lord's, are tottering on
107 for four on the last day of the Test. Over 60 overs to go in the day's play, and
four top order batsmen back in the pavilion. In comes a 17-year old teenager, whose baby
face makes him look even younger. The English bowlers are smelling blood and they are on
rampage. Three overs later things get worse for India as their captain Azharuddin is gone.
The England team have one hand on the series trophy --- or so it seemed. Every Indian on
the planet is thinking that the Test match is as good as lost. Everybody --- except one
that is. The 17-year old curly hair from Bombay is standing on the burning bridge, between
England and victory. He decides to set up a camp there, digs in, entrenches himself, and
after the dismissal of Kapil Dev, keeps the English bowlers at bay all day for almost 55
overs. He finds a diligent partner in Manoj Prabhakar who is willing to stay put for a few
hours. The young boy sees India through to the end of the match, playing a vintage innings.
The Test match is saved. As if hitting 68 in the first innings was not enough, it's 119 not
out in the second innings for the new teenage prodigy after the entire nation had absolutely
given up all hope. Not a difficult task for the adjudicators to decide who would be the Boy
of the Match. I mean, the Man of the Match. A heroic performance from the curly-haired wonder
kid who announced himself to the world on that day. SACHIN TENDULKAR HAD ARRIVED !!!!!
The number of characters in the file: 1629
#!/usr/local/bin/python3.5
print()
specify_file = input("Enter the filename along with the full path: ")
file = open(specify_file, 'rt')
character_capture = file.read()
print()
print("Contents of the file")
print("--------------------")
print()
print(character_capture)
print()
print()
print("The number of characters in the file: ", len(character_capture))
print()
Execution
Enter the filename along with the full path: /Python-scripts/Memorable-Tests/Old-Trafford-1990-K25.txt
Contents of the file
--------------------
14th Aug 1990. The second Test of the series between England and India being played in Old Trafford.
India, already one down in the series after a heavy defeat at Lord's, are tottering on
107 for four on the last day of the Test. Over 60 overs to go in the day's play, and
four top order batsmen back in the pavilion. In comes a 17-year old teenager, whose baby
face makes him look even younger. The English bowlers are smelling blood and they are on
rampage. Three overs later things get worse for India as their captain Azharuddin is gone.
The England team have one hand on the series trophy --- or so it seemed. Every Indian on
the planet is thinking that the Test match is as good as lost. Everybody --- except one
that is. The 17-year old curly hair from Bombay is standing on the burning bridge, between
England and victory. He decides to set up a camp there, digs in, entrenches himself, and
after the dismissal of Kapil Dev, keeps the English bowlers at bay all day for almost 55
overs. He finds a diligent partner in Manoj Prabhakar who is willing to stay put for a few
hours. The young boy sees India through to the end of the match, playing a vintage innings.
The Test match is saved. As if hitting 68 in the first innings was not enough, it's 119 not
out in the second innings for the new teenage prodigy after the entire nation had absolutely
given up all hope. Not a difficult task for the adjudicators to decide who would be the Boy
of the Match. I mean, the Man of the Match. A heroic performance from the curly-haired wonder
kid who announced himself to the world on that day. SACHIN TENDULKAR HAD ARRIVED !!!!!
The number of characters in the file: 1629
No comments:
Post a Comment