How do I convert a .MT file to a .bin file?

Hi,
I'm trying to convert an MT file into a binary file but have been unsuccessful. Any guidance would be appreciated. Thanks!

3 Comments

Is a .mt file a MetaTalk script?
Which .bin file format do you need? There is no standard for .bin file: .bin is used to refer to any arbitrary binary file format.
Yes, the file is a MetaTalk script.
As far as the .bin file format I'm not sure which is needed. My understanding of formatting is elementary. I'm converting the .mt to .bin in order to be compatible with a program I'm using for data analysis. I do have a sample .bin file that the program writer including for testing. Is there a way to determine what format is required using the file provided?
It appears that MetaTalk scripts were the programming language for MetaCard, which had its technology purchased by Run Revolution, which then renamed itself LiveCode
MetaTalk scripts in .mt format are text files containing code. They are not data files, and it seems odd that you would want to convert one to a .bin . It would seem more likely that you would want to convert the output of running a .mt script into a .bin .
We are probably going to need a sample .mt and sample .bin .

Sign in to comment.

Answers (1)

If you just need to change the extension, something like this should work (though I haven't tested it):
oldfile = 'myfile.mt';
[oldpath, oldname, oldext] = fileparts(oldfile);
oldnamepath = fullfile(oldpath, [oldname '.' oldext]);
newnamepath = fullfile(oldpath, [oldname '.bin']);
movefile(oldnamepath, newnamepath)
If you need to change how the data is stored, you will need to know the format in which the data is stored in your original file and the format in which you want the data to be stored in the new file. As Walter said in his comment, you haven't stated the format of the .mt file and there is no standard .bin format as far as I'm aware.

1 Comment

Thank you, how would I determine the format needed? I apologize if my questions are elementary.

Sign in to comment.

Categories

Find more on Programming in Help Center and File Exchange

Tags

Asked:

on 22 Sep 2016

Commented:

on 23 Sep 2016

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!