TechTips • 📝 Can we create or edit a text file in Kustom apps?

No, you cannot directly create or edit text files on your device’s storage using Kustom apps.

Kustom apps do not contain a built-in text file editor or file-writing tools.

However, Kustom provides several related capabilities depending on what you are trying to accomplish:

  • Reading Local or Web Text Files: You can retrieve and read text or JSON data using the wg() (Web Get) function or by referencing local files using the kfile:// resource scheme
  • Downloading & Storing Data via Flows: Using Flows, you can set up actions like Web Get to fetch text/JSON from an API or web address and automatically store the local file path into a Global Variable
  • Editing Kode (Formulas): You can edit Kustom formulas inside the Advanced Editor
  • External apps can interact as a custom Kode Editor using the org.kustom.intent.action.EDIT_KODE Android intent
  • You can mirror your device to a desktop (using software like Vysor or AirDroid) to comfortably type and edit Kode using a full physical keyboard

I hope this would help.

:smiling_face::+1: