New course! Every coder should learn Generative AI!
Try a free lesson0
Is there any way a programmer can open a file to read?
3 Answers
+ 2
variable=open("filename")
+ 1
the file can be read using the read method open("filename", "r")
- 1
file = open("pathFile","r")