binary_to_file/3 is an Erlang function exported by "age_tools" module. Saves a binary block into a file (FileName). The file is created in RAW mode. Only the Erlang process which opened the file can use it. This function adds an option to specify the Mode when opening the file. Mode can get one of the following atoms: •write - The file is opened for writing. It is created if it does not exist. If the file exists and write is not combined with read, the file is truncated. •append - The file is opened for writing. It is created if it does not exist. Every write operation to a file opened with append takes place at the end of the file. •exclusive - The file is opened for writing. It is created if it does not exist. •raw - Allows faster access to a file, as no Erlang process is needed to handle the file. |
|
|