On Android, many code editors or text apps can not open very large files. Some of them have the limit of round 40MB.

For files around 30 MB, I use this Code Editor to view and edit (this app uses ACE editor under the hook). For larger files, there are a few choices:

A. Read-only

  1. This impressive tiny Text Reader can open very large files since it reads the file chunk by chunk (position style). It also supports the TTSand search function.

  2. Moon+ Reader also can view large text files.

  3. Certainly, for CLI, we can use Termux and open the file with lesscommand (less file.txt). There are also many other commands like more.

B. Read and Write

  1. Use Termux and install nano or vim or nvim (install with pkg install neovim editor. If you have never used such editors in the terminal before, try using nano.
pkg install nano
  
nano file.txt 

# press Ctrl + x to exist, Ctrl + s to save, Ctrl + c to cancel

  1. This FileEditorX (it supports editing and saving and other operation, but if the safe size is passed 40MB, some operations may cause errors.)