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

0 votes
asked Oct 9, 2022 in JavaScript by Robin
0 votes
asked Jun 24, 2020 in Python by Robindeniel
...