Edit Text Files in iCloud Drive on iPad Without Making a Copy
Edit the original, not a copy
To edit a text file in iCloud Drive on your iPad, open it from the Files app in an editor that opens the file in place, not one that imports a copy. That choice decides whether you end up with one file or two. For plain-text notes that travel between devices, one is what you want.
Here's where iCloud Drive lives on the iPad, how to open a file from it, why "open in place" differs from "import," and what to expect when the file isn't downloaded yet.
Turn on iCloud Drive and find the file
iCloud Drive is built into the Files app. Open Files, tap the sidebar button, and choose iCloud Drive under Locations, as Apple's iCloud Drive setup guide describes.
If the folder is empty or missing files you expect, check the sync setting: go to Settings, tap your name, then iCloud, then Drive, and turn on Sync this iPad. How much you can keep there depends on your iCloud storage plan.
Once the setting is on, a notes folder you created on a Mac shows up in the same place on the iPad, which is what makes a plain .txt or .md file a good fit for iCloud Drive in the first place.
Open the file from Files
In Files, tap a file to see its preview. Per Apple's guide to modifying files and folders, you tap Open below the preview to work with the file, and you can drag a file onto an app in the Dock to open it in that app.
Which app you open it in matters more than the gesture. Pages, for example, can open and edit text documents with a .txt or .rtf extension, according to Apple's Pages documentation. A dedicated text or code editor is the other route, and it keeps the file as plain text without converting it.
Two small things to know in Pages:
- You may need to tap Edit at the top of the screen. Documents you receive from someone else can open in reading view.
- If the file isn't in the list, search for it, or tap Show Sidebar and browse to it under Locations.
Open in place vs import: why the difference matters
Behind the Files app is the system document picker, and Apple's Document Picker Programming Guide lists four operations: import, export, open and move.
Copies: import and export
Import and export copy the file. The original stays unchanged, and you work on a separate local copy. That's simple for the app, but it costs extra storage and makes it hard to process one document with several apps. If you edit an imported copy, your iCloud Drive original does not change.
In place: open and move
For open and move, the guide says the file can be accessed directly from the source's container, letting the user edit the file in place. iCloud Drive is one of those sources.
Move is a variation: it saves the file to the destination and deletes the original from the app's own sandbox, so you keep a single file in its new home.
If you build apps, the same guide says an app working on files outside its sandbox must do all reads and writes through file coordination, and that a UIDocument subclass handles this for you. The page is archived and dates from 2015, so check Apple's current documentation before relying on its API details.
How to tell which one you got
Edit a word, close the file, then look at the folder in Files. If the change is in the original and no duplicate has appeared, the app opened it in place. If a second copy with the same name sits in the app's own storage, it imported one.
What happens to a file that isn't downloaded yet
A file in iCloud Drive may not be on the device yet. In Pages, Apple states that when you open a document saved in iCloud Drive, it's automatically downloaded to your device. Other editors handle this their own way, so if a file seems empty or stalls, give it a moment on a good connection and open it again.
Keep the folder tidy so the file stays findable
An in-place edit is only as useful as your ability to find the file next week. A few light structures work well with plain text in iCloud Drive:
- Numbered folders give each area a fixed address.
- The PARA method sorts notes by projects, areas and resources.
- On a Mac, you can show one notes folder in two places with a symbolic link.
Conclusion
Open the file from Files in an editor that works on the original, check once that no duplicate appeared, and keep the file as plain text so any app on any device can read it. That's the whole habit.
Frequently Asked Questions
Does editing a .txt file from iCloud Drive on iPad make a copy?
It depends on how the app opens it. Apple's document picker has import and export modes that work on copies, and open and move modes that let you edit the file in place in iCloud Drive.
Can the Files app itself edit a plain text file?
Files opens a file from its preview or by dragging it onto an app in the Dock. The editing happens in the app you choose, for example Pages, which can open and edit .txt and .rtf files, or a text editor.
Do I need to download an iCloud Drive file before editing it?
Apple says a document opened from iCloud Drive in Pages is downloaded to the device automatically. Other apps handle this in their own way.