Read and Write Binary Files

    
Create a file with a 32-bit integer in the temporary directory:
In[30]:=
Click for copyable input
In[31]:=
Click for copyable input
In[32]:=
Click for copyable input
Read the data from the file:
In[33]:=
Click for copyable input
Out[33]=
In[34]:=
Click for copyable input
Read the data with reverse byte ordering:
In[35]:=
Click for copyable input
Out[35]=
In[36]:=
Click for copyable input
New to Mathematica? Find your learning path »
Have a question? Ask support »