On Tue, 15 May 2018 11:53:47 +0530, mahesh d wrote:
> Hii.
>
> I have folder.in that folder some files .txt and some files .msg files.
> .
> My requirement is reading those file contents . Extract data in that
> files .
The answer to this question is the same as the answer to your previous
question "Extract" sent earlier.
Use the glob module, or the os.listdir function, to get a list of files
matching the extension you want, then read each file.
Do you know how to open and read the contents of a file?
with open("filename.txt", "r"):
data = f.read()
What you do with the data is then up to you.
--
Steve
--
https://mail.python.org/mailman/listinfo/python-list