JuvenileMango
0
Newbie Poster
Recommended Answers
Jump to PostWhat is the difference between
file = open("name.txt")
and
file = open("name.txt", 'r')
?
I can still use the methods: read(n), readline(n), and readlines(n) without adding the "r" in the open method.
the parameter "mode" is optional and the default value is 'r' (read) so if you leave …
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.