Character32

Background

    • Sequence of 32-bit characters.
    • Raw binary format.

Import & Export

  • Import["file","Character32"] imports any file, returning a list of 32-bit characters.
  • Export["file",list,"Character32"] exports a list of 32-bit characters to file.
  • Import["file",{"Character32",elem}] or Import["file",elem ] imports the specified element from file.
  • Import["file",{"Character32",{elem1,elem2,}}] imports multiple elements.
  • See the reference pages for full general information on Import and Export.
  • ImportString and ExportString support the Character32 format.

Import Elements

  • General Import elements:
  • "Elements" elements and options available in this file
    "Rules"full rules for each element and option
    "Options"rules for options, properties and settings
  • Data representation element:
  • "Data"list of 32-bit characters
  • By default, Import and Export use the "Data" element.
  • Import["file",{"Character32",n}] gives the n^(th) 4-byte character.
  • If a 4-byte sequence does not represent a valid character, the empty string "" is returned.

Options

Examples

Basic Examples  (1)

Convert a list of characters to a string representing a 32-bit character array:

In[1]:=
Click for copyable input
Out[1]=

Show the character codes corresponding to the previous result:

In[2]:=
Click for copyable input
Out[2]=

Convert back to a list of characters:

In[3]:=
Click for copyable input
Out[3]=
Introduced in 2019
(12.0)