MMpy.File.open
Syntax
file.open(file_path)
Description
Opens a Micromine data file.
Supported files include .DAT, .STR, .SVY, .MCR or .LDT.
Parameters
Name |
Type |
Description |
---|---|---|
file_path |
str | The path of the data file to open. |
Returns
Type |
Description |
---|---|
bool | Returns True if successful, otherwise returns False. |
See Also
MMpy.File.close()
Examples
file_path = MMpy.Project.path() + 'Test.DAT' file = MMpy.File() if not file.open(file_path): raise IOError('Error: problem opening file')
Resource ID
IDPH_FILE_OPEN