Reputation: 161
I have a file with extension .mod. That file contains fields and data under each field, just like every csv files do. I need to read this .mod file using Python.
Please suggest me a way out in Python using Pandas or any other package that could help me with this.
Thanks!
Upvotes: 0
Views: 2425
Reputation: 2612
On Windows 10, using Python 3.6, I could successfully open the file and read the first line:
with open('09nested.mod') as f:
print(f.readlines()[0])
// File: 09nested.mod
>>>
Upvotes: 1