Navigation: Developing Apps > BINETIX® AGE™ API > The Node > Toolkits > age_mime
save_file/2
Description
save_file/2 is an Erlang function exported by "age_mime" module.
This function works like save/1, however, saves the results into a file.
References
•age_mime.hrl
•save/1
Parameters
Name
Type
Message
#age_mime{}
Input MIME record.
FileName
string()
Output file name.
Result
Value or Type
ok
Returns ok on success.
Code Sample
> Message = age_mime:create(). > age_mime:save_file(Message, "/tmp/output.msg"). ok