Problem Statement - B04A-2015D
Differentiate between the following:
(i) f = open (‘diary. txt’, ‘r’)
(ii) f = open (‘diary. txt’, ‘w’)
Solution
CSKC| Created: 14-Jan-2019 | Updated: 14-Jan-2019|CBSE12D-2015
Differentiate between the following:
(i) f = open (‘diary. txt’, ‘r’)
(ii) f = open (‘diary. txt’, ‘w’)
|
(i) diary.txt is opened for reading data
(ii) diary.txt is opened for writing data
CSKC| Created: 14-Jan-2019 | Updated: 14-Jan-2019|CBSE12D-2015