[✓] Open a Bin file

Dear All,
I am new to Mathematica. I just downloaded the trial version just to understand if it can be good for me.
I normally work around numerical data and i need to read and work with a BIN file.
The code that I use in Octave to open the file is:

fid=fopen(filename);

A=fread(fid,‘uint16’);

fclose(fid);

How can I open this file in Mathematica?
Thank you very much and best regards.

Burno

Hi Bruno,

You can try BinaryReadList

data = BinaryReadList[filename, "UnsignedInteger16"];
Close[filename];

Hi Rohit.
Thank you very much for your reply!
I tried and it works!