Let function.txt be in string format, support for android