MagicTree can import data such as host names, IP addresses and network addresses from flat files. Suppose you have a list of hosts and networks in a plain text file looking like this:
192.168.1.0/24
10.0.1.0-10.0.2.255
www.example.com
192.168.5.16
192.168.5.17
To import this data into the tree, select "Import flat file..." from File menu. You can also use Ctrl+I keyboard shortcut (Command+I on Mac). This wll open a file selection dialog box. Select the file to import data from and click "Open".
MagicTree will read the file line by line and attempt to guess the type of node (i.e. "host", "fqdn", "url") and create it, using the same rules as for node autocreation (see Autocreate). If MagicTree can not guess the type of node for a given line, it will skip the line, print an error message identifying the line that was not imported, and continue with the rest of the file.
It is possible to undo flat file import.
Importing the flat file shown above will produce the following:
Import result