Jan 19 in Python
Q: 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
Dec 17, 2019 in Internet of Things IoT
0 votes
Jan 30, 2020 in Selenium
...