How to create a text file on a Xiaomi Redmi smartphone: all the ways from MIUI to third-party applications

Introduction: Why create text files on a smartphone?

Text files (.txt) on Xiaomi Redmi can come in handy in the most unexpected situations, from quick notes to storing configurations for programs or backups of important data. Unlike notes in standard applications,.txt files are universal – they can be opened on any device, sent by mail or edited through ADB.

Many users mistakenly think that you need a computer or special software to create a text document. In fact, MIUI (Xiaomi firmware) offers several built-in methods, and the Google Play store is full of free editors. In this article, we will discuss 5 working methods, from the simplest to the most advanced, including hidden features of Redmi, which are not written in the official documentation.

We will pay special attention to the nuances of working with the Android file system on Xiaomi: where the created documents are stored, how to avoid data loss when updating the firmware, and why some methods may not work on models with MIUI 14+ due to changes in security policy.

Method 1: through the built-in MIUI File Manager

The fastest method, which does not require additional applications, is suitable for all Redmi on MIUI 12-14, including budget models like Redmi 10A or Redmi Note 12. The main advantage is that files are created directly in the root folder of internal memory, which makes it easier to access them through ADB or MTP.

Instructions:

  1. Open the Files app** (Blue folder icon).
  2. Go to the Local Storage tab. β†’ Internal memory.
  3. Click on the three dots in the top right corner and select Create β†’ File.
  4. Enter the file name with the.txt extension (such as notes.txt) and click OK.
  5. Select any editing application (such as Notepad or QuickEdit) from the list offered.

⚠️ Note: If the file does not open after creation, check if the Privacy Protection** access is blocked in Settings. β†’ Annexes β†’ Permits β†’ Files and folders. MIUI 14 for some folders (e.g. Download) it may be necessary to manually grant rights.

The file name contains.txt at the end.|Selected the correct memory partition (internal/map)|The editing app has access to files|No restrictions MIUI file-write-->

Method 2: Use the Notes app with export

Xiaomi Redmi’s standard Notes app can export.txt recordings, which is convenient if you’re texting and want to save them in a universal format, and is suitable for MIUI 11+ models including the Redmi K50 and POCO X5.

How to export a note to.txt:

  • πŸ“ Open the Notes app** and select the desired entry.

πŸ’‘ Useful tip: If the exported file opens with characters, check the encoding. MIUI default UTF-8, Some editors (e.g. Notepad)++ on PCs may be required ANSI. To change the encoding, use the Turbo Editor app** from Google Play.

How to change the encoding in Turbo Editor
1. Open the file in Turbo Editor. 2. Click on three dots β†’ β€œEdit.” 3. Select β€œWindows-1251” (for Cyrillic) or β€œUTF-8 without BOM.” 4. Save the file (Ctrl+S or floppy button).

Method 3: Third-party editors (QuickEdit, Jota+)

If the built-in MIUI tools seem limited, installing a customized text editor will solve the problem, and apps like QuickEdit or Jota+ offer advanced features: syntax highlighting (good for programmers), cloud storage, and SFTP support.

Top.-3 editor for Xiaomi Redmi:

AnnexPlusesConsReference
QuickEditFree, no ads, support for.sh/.jsonNo cloud synchronizationGoogle Play
Jota+Code highlighting, Git integration, Root accessA complex interface for beginnersGoogle Play
MonospaceMinimalist design, Markdown supportPaid functions (e.g. SFTP)Google Play

πŸ”§ Technical nuance: On Redmi with MIUI 13/14 Some editors may request permission to access "all filesΒ»** (MANAGE_EXTERNAL_STORAGE). It's okay, because without it, the application can't save files to arbitrary folders:

  1. Go to Settings β†’ Applications β†’ Permissions Management β†’ Special Access β†’ All files.
  2. Find your editor in the list and turn on the switch.

Built-in notebook MIUI|QuickEdit|Jota+|Monospace|Another (write in the comments)-->

Method 4: via Termux (for advanced users)

If you need to create a text file through a terminal (for example, for scripts or configurations), Termux is the perfect solution. This Linux terminal emulator allows you to use touch, echo and nano commands directly on Xiaomi Redmi.

Step-by-step:

  1. Install Termux from F-Droid (the version from Google Play is outdated).
  2. Run Termux and run the command to update the packages: pkg update & pkg upgrade
  3. Install the text editor nano: pkg install nano
  4. Create a file and edit it: nano /sdcard/Download/myfile.txt (to save, click Ctrl+O, then Enter; to exit, Ctrl+X).

⚠️ Attention: MIUI 14 Termux does not have access by default. /sdcard. To fix this, do it:

termux-setup-storage

And you give permission to access the storage, and then the Android folders will be accessed by the path /storage/emulated/0/.

πŸ’‘

If Termux doesn’t see internal memory, check if storage is disabled in Android settings. Go to Settings β†’ Apps β†’ Termux β†’ Permissions and turn on Storage.

Method 5: Automation with Tasker (for scripts)

For users who often create text files on a schedule (for example, log data from sensors), Tasker is suitable. This application allows you to automate the creation of files with specified content by triggers: time, location, event on the system.

Example of a task to create a file with a current date:

  1. Install Tasker from Google Play.
  2. Create a new task (+ β†’ Task).
  3. Add the action File β†’ Write the file.
  4. Indicate the path (e.g, /sdcard/Download/log_%DATE.txt) and text (e.g. Log created: %TIME).
  5. Save and run the task manually or set up a trigger (e.g., time).

On Xiaomi Redmi with MIUI 14 Tasker, you may not see folders on your memory card due to the limitations of Scoped Storage.To get around this, save files to internal memory or use ADB to provide full access.

Where are the files stored and how do you find them?

By default, text files on Xiaomi Redmi are saved to one of three folders:

  • πŸ“ /storage/emulated/0/Download β€” if created through the "File Manager" or export from the "NotesΒ».
  • πŸ“ /storage/emulated/0/Documents β€” If you use third-party editors.
  • πŸ“ /storage/emulated/0/[Application name: For files created via Termux or Tasker.

To open the file:

  1. Start the file manager (MIUI File Manager).
  2. Select the application to open (for example, Notepad or QuickEdit).

πŸ” If the file is not located:

  • Check if it is hidden (enable the display of hidden files in the File Manager settings).
  • Use a name search at the top of the Files app.
  • Connect Redmi to your PC via USB (File Transfer Mode) and check folders manually.

πŸ’‘

Files created through Termux or ADB may not appear in MIUI’s File Manager. To view them, use the FX File Explorer app** with Root mode enabled (if you have superuser rights).

Frequent problems and their solutions

When working with text files on Xiaomi Redmi, users experience typical errors, and here are the most common ways to fix them:

Problem.Reason.Decision
You can not save the file to the Download folderMIUI limitations on writing to system foldersSave to Documents or provide manual permissions through ADB:
File opens with crack-assesIncorrect encoding (e.g. UTF-8 instead of ANSI)Use Turbo Editor** to change the encoding to Windows-1251
Termux does not see internal memoryThe termux-setup-storage command is not executedStart the command and give access to the storage.
The application cannot create a file on the SD cardMIUI blocks recording to external media for third-party applicationsFormat the card as β€œInner Memory”** in your phone settings

⚠️ Attention: Redmi with MIUI 14 and newer some folders (e.g, Android/data) Coped Storage is protected.** Even with Root rights, entry there can be limited:

adb shell settings put global hidden_api_policy 1

(Requires PC connection and enabled USB Debugging**).

Can you create a text file without installing additional applications?
Yes, use the built-in File Manager (method 1) or export notes from Mi Notes (method 2).
Why is Redmi Note 11 not working on file creation via Termux?
Most likely, the termux-setup-storage command is not executed or storage access is disabled. Check the permissions in Settings β†’ Applications β†’ Termux β†’ Permissions.
How to change the file extension from.txt to.sh for scripts?
Open File Manager**, find the file, click Rename and manually change the extension. MIUI may require confirmation of action.
Where do files go after MIUI update?
The firmware update doesn't delete user files, but it can reset permissions. Check Download and Documents folders through File Manager. If files are gone, use a data recovery program like DiskDigger.
Can you edit text files via PC by connecting Redmi over USB?
Yes, but turn on File Transfer (MTP) mode in the notification curtain. On Windows, you may need to install Xiaomi drivers (download from the official website).