Want to batch import data from TXT (“|” pipe delimited text) files to MongoDB collections?
Using Withdata software FileToMongo, a MongoDB TXT importer for Windows, MacOS, and Linux, you can bulk import data from TXT (“|” pipe delimited text) files to MongoDB collections easily and fast.
- Can run in GUI mode, Step by Step, just a few mouse clicks.
- Can run in Command line, for Scheduled Tasks and Streams.
- Support all MongoDB deployment types: standalone, replica set, sharded cluster, and MongoDB Atlas.
Bulk import data from TXT (“|” pipe delimited text) files to MongoDB collections
Login to MongoDB -> Choose TXT files -> Set MongoDB collections. -> Import TXT files into MongoDB collections
Start FileToMongo, connect to MongoDB.
Click “N File To N Collection” at task dialog.
then show the wizard.
Select the “TXT” file type.
1. Open a folder contains TXT (“|” pipe delimited text) files.
2. Set TXT (“|” pipe delimited text) options.
3. List collesions, set “Import Type”.
4. Map files to collections.
5. Summary.
6. Import TXT (“|” pipe delimited text) data to MongoDB collections.
After importing, you can view imported data.
Bulk import TXT (“|” pipe delimited text) to MongoDB in command line
Save “TXT to MongoDB” session, then you can:
- Bulk import TXT (“|” pipe delimited text) to MongoDB in Windows command line.
- Bulk import TXT (“|” pipe delimited text) to MongoDB in Linux command line.
- Bulk import TXT (“|” pipe delimited text) to MongoDB in macOS command line.
Set scheduled tasks for bulk importing TXT (“|” pipe delimited text) to MongoDB
You can schedule and automate this “TXT to MongoDB” conversion task by:
1) Save session and create .bat (Windows) or .sh (Linux/macOS) file.