Write text file to phone (offline)

For more information look at this:
Getting started with API blocks