YT Q
YT Q

Reputation: 41

python close mdf(.mf4) file

I read a mf4 file using asammdf package. I want to delete this file after doing some edits but failed. The error shows: This file is in use by another program and cannot be accessed by the process. I wonder how to close a mf4 file before delete.

from asammdf import MDF
mdf = MDF(path)

Upvotes: 0

Views: 1274

Answers (1)

danielhrisca
danielhrisca

Reputation: 730

from asammdf import MDF
mdf = MDF(path)
# .... something something
mdf.close()

Upvotes: 1

Related Questions