0 votes
in Python by
Which one of the following syntaxes is the correct syntax to read from a simple text file stored in ''d:\java.txt''?

i) Infile = open(''d:\\java.txt'', ''r'')

ii) Infile = open(file=''d:\\\java.txt'', ''r'')

iii) Infile = open(''d:\java.txt'',''r'')

iv) Infile = open.file(''d:\\java.txt'',''r'')

Related questions

+1 vote
asked Jan 30, 2022 in Python by sharadyadav1986
0 votes
asked Jan 11, 2021 in Python by SakshiSharma
...