Can I be able to read a text file from any text editor (eg Ms word, wordpad) using python. and then return whats inside?
sallas07
0
Newbie Poster
Recommended Answers
Jump to PostYes. You can use
open
to open a file and return the file handle. Note that some formats (ie, .doc) are not "flat" text files, meaning they may have some binary data, markup, etc.You'll need to take that into account on a per-file basis.
All 3 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.