0
Reading files
How can I define a file in python and can open it ? I mean I want to read a file , but don’t know how to define it ,
2 Respostas
+ 1
What do you mean by "define a file"?
https://realpython.com/read-write-files-JUMP_LINK__&&__python__&&__JUMP_LINK/
https://www.sololearn.com/Discuss/3019998/?ref=app
+ 1
You need to provide the full path to the file or change your directory in code using os.chdir()
example path: /home/slick/documents/test_file.txt
EDIT: Path should be provided as a string